( .NET, , async/await
)
, , - IO.
:
, . , . , , . , - .
ThreadPool pre Task
. threadpool - , , .
Task
. , , Task.ContinueWith
.
IO - :
, - . , , . . , -. pre Task
BeginRead/EndRead
BeginWrite/EndWrite
, -
Task
. - Task.ContinueWith
. IO.
Task
- , -. Task.ContinueWith
. , Task
.
Task.ContinueWith
.
, a ... . Node.js( JS async/await
). async/ . , # . , , await
, -, , , await
. ( async
/await
) ContinueWith
.
, async
/await
+ Task
?
async
/await
- . ( , ++, #, Java Javascript, async
/await
- .)async
/await
, , , IO. , .- -, .
Task
a IThreadPoolItem
.Net. async
/await
. 1 → .- +
async
/await
. . . , , , . , , - , , , . await
, . (Microsoft), standarize await
++. 2015 , ++ await
, IO- . ( 39:30)
:
. True
False. async
/await
. . threadpool. async
/await
, / . , , .
. ?
False. , async
/await
. varaiables. ( ), .
async , ?
, + async
/await
. IO - , . + async
/await
IO-bound-threadpool, . . ( ) . (IO), CPU (json- , ..) (IO ). + async
/await
, .
, async
/await
. , . " ", ?