Classes
The following classes are available globally.
-
A base
IAsyncCommandimplementation. *Your subclass should override the
See moreexecutemethod where your business logic will handle theINotification. * @see org.puremvc.swift.multicore.utilities.asynccommand.patterns.command.AsyncMacroCommand AsyncMacroCommandDeclaration
Swift
public class AsyncCommand: SimpleCommand, IAsyncCommand
-
A base
ICommandimplementation that executes otherICommands asynchronously.An
AsyncMacroCommandmaintains a list of closures returningICommandreferences called SubCommands.When
executeis called, theAsyncMacroCommandcaches a reference to theINotificationand callsnextCommand.If there are still SubCommands’s to be executed, the
nextCommandmethod instantiates and callsexecuteon each of its *SubCommands in turn. Each SubCommand will be passed a reference to the originalINotificationthat was passed to theAsyncMacroCommand’sexecutemethod. If the SubCommand to execute is anIAsyncCommand, the next SubCommand will not be executed until the previousIAsyncCommandhas called its commandComplete method.Unlike
AsyncCommandandSimpleCommand, your subclass should not overrideexecute, but instead, should override theinitializeAsyncMacroCommandmethod, callingaddSubCommandonce for each SubCommand to be executed.
See more@see org.puremvc.as3.multicore.patterns.command.AsyncCommand AsyncCommandDeclaration
Swift
public class AsyncMacroCommand: Notifier, IAsyncCommand, INotifier
View on GitHub
Classes Reference