Aracılığıyla paylaş


Extensions.Synchronize Method

Definition

Overloads

Synchronize(Func<Task>)
Synchronize<TResult>(Func<Task<TResult>>)

Synchronize(Func<Task>)

public static void Synchronize (Func<System.Threading.Tasks.Task> function);
static member Synchronize : Func<System.Threading.Tasks.Task> -> unit
Public Sub Synchronize (function As Func(Of Task))

Parameters

function
Func<Task>

Applies to

Synchronize<TResult>(Func<Task<TResult>>)

public static TResult Synchronize<TResult> (Func<System.Threading.Tasks.Task<TResult>> function);
static member Synchronize : Func<System.Threading.Tasks.Task<'Result>> -> 'Result
Public Function Synchronize(Of TResult) (function As Func(Of Task(Of TResult))) As TResult

Type Parameters

TResult

Parameters

function
Func<Task<TResult>>

Returns

TResult

Applies to