Skip to main content

Questions tagged [async]

For questions about the implementation of asynchronous functions or methods in a programming language, including syntax and functionality.

Filter by
Sorted by
Tagged with
3 votes
3 answers
337 views

I recently read about PHP's true async RFC. The initial real life "picture" (unrelated to PHP or sync processing) that I imagined was a waiter in a restaurant. He/She/It works async, taking ...
marius-ciclistu's user avatar
1 vote
1 answer
352 views

I find it interesting to have stackless asynchronous I/O, e.g. when using an HTTP-client in the code, the call-stack get emptied before handling next "event" (could be unrelated or the ...
Jonas's user avatar
  • 715
18 votes
2 answers
4k views

I struggle to get the thing about "algebraic effect systems". What is it really about? Is it mostly about that functions doing IO (e.g. http request) should have that IO-operation visible in ...
Jonas's user avatar
  • 715
14 votes
1 answer
3k views

I have recently been making my own programming language and I am finding most concepts easy to understand, however I'm not sure how to implement async/await in my language. ATM, I'm using C# to create ...
InvaderIzzy's user avatar
16 votes
5 answers
5k views

I noticed that many languages' built-in asynchronous Future cannot be canceled once called. Although many third-party libraries provide this ability, it is not ...
Aster's user avatar
  • 3,508
3 votes
2 answers
269 views

The inspiration for this question There are many advantages of using monadic types like Promise<T> or Result<T> as ...
mousetail's user avatar
  • 9,627
5 votes
1 answer
439 views

When writing a game's event loop, I always rely on a function from an external library, like draw() in ProcessingJS for ...
Quack E. Duck's user avatar
8 votes
1 answer
346 views

In some languages, async/await can be simply transformed into callbacks, as if it were syntactical sugar: ...
Bbrk24's user avatar
  • 9,682
7 votes
2 answers
502 views

In a lot of modern languages (such as Python), asynchronous functions (those that return coroutines) must be explicitly marked as such: ...
Ginger's user avatar
  • 2,707
8 votes
8 answers
1k views

Some languages, such as JS and Rust, make a distinction between normal/synchronous functions and async ones. An async function ...
rydwolf's user avatar
  • 4,870