Bridge

Task..::..FromPromise<(Of <(<'TResult>)>)> Method (IPromise, Delegate)

Namespace:  System.Threading.Tasks
Assembly:  Bridge (in Bridge.dll)

Syntax


public static Task<TResult> FromPromise<TResult>(
	IPromise promise,
	Delegate resultHandler
)
Public Shared Function FromPromise(Of TResult) ( _
	promise As IPromise, _
	resultHandler As Delegate _
) As Task(Of TResult)
public:
generic<typename TResult>
static Task<TResult>^ FromPromise(
	IPromise^ promise, 
	Delegate^ resultHandler
)

Type Parameters

TResult

Parameters

promise
Type: System.Threading.Tasks..::..IPromise
resultHandler
Type: System..::..Delegate