Strona głównaSztuka programowania

Generalized async return types — it is a new C#7 feature that allows using not only Task as a return type of async methods but also other types (classes or structures) that satisfy some specific requirements. At the same time, async/await is a way to call a set of "continuation" functions inside some context which is an essence of another design pattern — Monad. So,...

Tagi: async, await, Task
Źródło: habr.com
Dziel się z innymi:
“Maybe” monad through async/await in C# (No Tasks!)

Sztuka programowania 1731 dni, 16 godzin, 2 minuty temu rroszczyk 178 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu