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
17 votes
2 answers
3k views

What does it mean that a language has an "effect system"?

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
  • 304
12 votes
1 answer
2k views

Async Implementation

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

Why can many languages' futures not be canceled?

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,228
3 votes
2 answers
191 views

Can I use monadic types without needing colored functions?

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

Built-In Asynchronous Loops (Not Functions) - Do they / could they exist?

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
7 votes
1 answer
145 views

How can task-local variables be implemented?

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

Must async functions always be marked as such?

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,629
8 votes
8 answers
543 views

What are some options for syntax for async/await?

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