Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Design Space Exploration of Async/Await. Parent comment
function func() -> async fn func()
go func -> tokio::task::spawn(func)
func() -> func().await
func_blocking() -> tokio::task::spawn_blocking(||func_blocking()).await
(not sure about cancellation behavior in go though)
There are no comments on this comment yet.
function func() -> async fn func()
go func -> tokio::task::spawn(func)
func() -> func().await
func_blocking() -> tokio::task::spawn_blocking(||func_blocking()).await
(not sure about cancellation behavior in go though)