SKRunableObject Reference

File
ShellKit/SKRunableObject.h
Copyright
© (c) 2017, Jean-David Gadina - www.xs-labs.com
Date
Monday, May 15, 2017
Includes
  • <Foundation/Foundation.h>

Protocol SKRunableObject

Attributes

Extends Protocol
NSObject

Required Tasks

Properties

- run

Runs the task (synchronously)

- ( BOOL )run;

Return value

YES if the runnable object has run successfully, otherwise NO

- run:

Runs the task with variables (synchronously)

- ( BOOL )run: ( nullable NSDictionary< NSString *, NSString * > * )variables;

Parameters
  • variables
    Optional variables
Return value

YES if the runnable object has run successfully, otherwise NO

error

An optional error, possibly set after the task has run

@property( atomic, readonly, nullable ) NSError * error;

running

Set when the runnable object is currently running

@property( atomic, readonly ) BOOL running;