PromiseLiteDebugger
public protocol PromiseLiteDebugger
Methods you can implement to observe promise lifecycle.
-
Tells the debugger that a promise gets initialized.
Declaration
Swift
func promise(description: String, initAt date: Date)Parameters
descriptionA short text that describes the promise, cf.
init.dateThe date when the promise’s
inithas been called. -
Tells the debugger that a promise resolves.
Declaration
Swift
func promise(description: String, resolvesAt date: Date)Parameters
descriptionA short text that describes the promise, cf.
init.dateThe date when the promise’s
resolvegets called. -
Tells the debugger that a promise rejects.
Declaration
Swift
func promise(description: String, rejectsAt date: Date, error: Error)Parameters
descriptionA short text that describes the promise, cf.
init.dateThe date when the promise’s
rejectgets called.errorThe reason why the promise rejects.
PromiseLiteDebugger Protocol Reference