GlobalCacheLockExecuteWriterAsync - метод
Пространство имён: Tessa.Platform.CachingСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask ExecuteWriterAsync(
Func<CancellationToken, ValueTask> actionAsync,
CancellationToken cancellationToken = default
)
Public Function ExecuteWriterAsync (
actionAsync As Func(Of CancellationToken, ValueTask),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask ExecuteWriterAsync(
Func<CancellationToken, ValueTask>^ actionAsync,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract ExecuteWriterAsync :
actionAsync : Func<CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override ExecuteWriterAsync :
actionAsync : Func<CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- actionAsync FuncCancellationToken, ValueTask
- Делегат, выполняемый в глобальной блокировке.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskАсинхронная задача.
IGlobalCacheLockExecuteWriterAsync(FuncCancellationToken, ValueTask, CancellationToken)