Partager via


Extensions.Synchronize Méthode

Définition

Surcharges

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))

Paramètres

function
Func<Task>

S’applique à

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

Paramètres de type

TResult

Paramètres

function
Func<Task<TResult>>

Retours

TResult

S’applique à