Version 0.0.0-0

Public members

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 Top

Runs the task (synchronously)

- ( BOOL )run;

Return value

YES if the runnable object has run successfully, otherwise NO

- run: Top

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 Top

An optional error, possibly set after the task has run

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

running Top

Set when the runnable object is currently running

@property( atomic, readonly ) BOOL running;