PromisesContinueT, S Method |
Continue a promise chain by acting on the previous promise's result and returning a new promise
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IPromise<S> Continue<T, S>(
this IPromise<T> promise,
Func<T, IPromise<S>> callback
)
<ExtensionAttribute>
Public Shared Function Continue(Of T, S) (
promise As IPromise(Of T),
callback As Func(Of T, IPromise(Of S))
) As IPromise(Of S)
Parameters
- promise
- Type: Innovator.ClientIPromiseT
Previous promise - callback
- Type: SystemFuncT, IPromiseS
Code to execute on resolution of the promise and returning a new promise
Type Parameters
- T
- S
Return Value
Type:
IPromiseSA new promise
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPromiseT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also