TaskCompletionSourceExtensions.CompleteFromTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CompleteFromTask(TaskCompletionSource<Object>, Task)
public:
[System::Runtime::CompilerServices::Extension]
static void CompleteFromTask(System::Threading::Tasks::TaskCompletionSource<System::Object ^> ^ tcs, System::Threading::Tasks::Task ^ task);
public static void CompleteFromTask (this System.Threading.Tasks.TaskCompletionSource<object> tcs, System.Threading.Tasks.Task task);
static member CompleteFromTask : System.Threading.Tasks.TaskCompletionSource<obj> * System.Threading.Tasks.Task -> unit
Parameters
- task
- Task
Applies to
CompleteFromTask<TResult,UResult>(TaskCompletionSource<TResult>, Task<UResult>, Func<UResult,TResult>)
public:
generic <typename TResult, typename UResult>
[System::Runtime::CompilerServices::Extension]
static void CompleteFromTask(System::Threading::Tasks::TaskCompletionSource<TResult> ^ tcs, System::Threading::Tasks::Task<UResult> ^ task, Func<UResult, TResult> ^ resultConversionDelegate);
public static void CompleteFromTask<TResult,UResult> (this System.Threading.Tasks.TaskCompletionSource<TResult> tcs, System.Threading.Tasks.Task<UResult> task, Func<UResult,TResult> resultConversionDelegate);
static member CompleteFromTask : System.Threading.Tasks.TaskCompletionSource<'Result> * System.Threading.Tasks.Task<'UResult> * Func<'UResult, 'Result> -> unit
<Extension()>
Public Sub CompleteFromTask(Of TResult, UResult) (tcs As TaskCompletionSource(Of TResult), task As Task(Of UResult), resultConversionDelegate As Func(Of UResult, TResult))
Type Parameters
- TResult
- UResult
Parameters
- tcs
- TaskCompletionSource<TResult>
- task
- Task<UResult>
- resultConversionDelegate
- Func<UResult,TResult>
Applies to
CompleteFromTask<TResult>(TaskCompletionSource<TResult>, Task<TResult>)
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static void CompleteFromTask(System::Threading::Tasks::TaskCompletionSource<TResult> ^ tcs, System::Threading::Tasks::Task<TResult> ^ task);
public static void CompleteFromTask<TResult> (this System.Threading.Tasks.TaskCompletionSource<TResult> tcs, System.Threading.Tasks.Task<TResult> task);
static member CompleteFromTask : System.Threading.Tasks.TaskCompletionSource<'Result> * System.Threading.Tasks.Task<'Result> -> unit
<Extension()>
Public Sub CompleteFromTask(Of TResult) (tcs As TaskCompletionSource(Of TResult), task As Task(Of TResult))
Type Parameters
- TResult
Parameters
- tcs
- TaskCompletionSource<TResult>
- task
- Task<TResult>