Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
AsyncOverSimplified
MoreRealisticAsyncWorker
GetCountAsync
AsyncOverSimplified.MoreRealisticAsyncWorker.GetCountAsync C# (CSharp) Method
MoreRealisticAsyncWorker Class Documentation
Exibir arquivo
Open project: negativeeddy/blog-examples
GetCountAsync()
private
method
This method just returns a number for demonstration purposes It doesnt actually count anything
private
GetCountAsync
(
string
v
) :
Task
v
string
return
Task
private async Task<int> GetCountAsync(string v) { await Task.Delay(100); return (int)v[0]; } }
MoreRealisticAsyncWorker
DoWork
DoWorkExplicitTasks
DoWorkWithoutAwait
GetCountAsync