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
valueThe
AsyncMacroCommandmethod to call on completion -
Notify the parent
AsyncMacroCommandthat this command is complete.Call this method from your subclass to signify that your asynchronous command has finished.
Declaration
Swift
public func commandComplete()
View on GitHub
AsyncCommand Class Reference