Version 0.0.0-0

SKTaskGroup Reference

File
ShellKit/SKTaskGroup.h
Copyright
© (c) 2017, Jean-David Gadina - www.xs-labs.com
Date
Monday, May 15, 2017

Class SKTaskGroup

Attributes

Conforms to
SKRunableObject
Superclass
SKObject

- initWithName:tasks: Top

Creates a task group object

- ( instancetype )initWithName: ( NSString * )name tasks: ( NSArray< id< SKRunableObject > > * )tasks NS_DESIGNATED_INITIALIZER;

Parameters
  • name
    The name of the task group
  • tasks
    The tasks to execute when the task group is run
Return value

The task group object

See also

+ taskGroupWithName:tasks: Top

Creates a task group object

+ ( instancetype )taskGroupWithName: ( NSString * )name tasks: ( NSArray< id< SKRunableObject > > * )tasks;

Parameters
  • name
    The name of the task group
  • tasks
    The tasks to execute when the task group is run
Return value

The task group object

See also

currentTask Top

The task currently executing

@property( atomic, readonly, nullable ) id< SKRunableObject > currentTask;

Discussion

This property will be nil if the task group isn't running, or if no task is actually executing.

See also

name Top

The name of the task group

@property( atomic, readonly ) NSString * name;

tasks Top

The tasks contained in the task group

@property( atomic, readonly ) NSArray< id< SKRunableObject > > * tasks;

See also