public static IPromise<T> ToPromise<T>( this Task<T> task, CancellationTokenSource cts = null )
<ExtensionAttribute> Public Shared Function ToPromise(Of T) ( task As Task(Of T), Optional cts As CancellationTokenSource = Nothing ) As IPromise(Of T)