AsyncCommand
A base IAsyncCommand
implementation.
Your subclass should override the execute
method where your business logic will handle the INotification
.
@see org.puremvc.swift.multicore.utilities.asynccommand.patterns.command.AsyncMacroCommand AsyncMacroCommand
-
Constructor.
Declaration
Swift
public override init() {}
-
Registers the callback for a parent
AsyncMacroCommand
.Declaration
Swift
public var onComplete: (() -> ())?
Parameters
value
The
AsyncMacroCommand
method to call on completion -
Notify the parent
AsyncMacroCommand
that this command is complete.Call this method from your subclass to signify that your asynchronous command has finished.
Declaration
Swift
public func commandComplete()