Typed Async Code
Type async code that keeps its types: deferred promises, timeouts, retries, debounce, concurrency limits and settled tuples.
- 01
Build a Typed Deferred Promise
- easy
- Code
- 02
Sleep Until Done or Aborted
- easy
- Code
- 03
Time Out a Promise with a Typed Error
- easy
- Code
- 04
Retry an Async Call, Keeping Its Result Type
- easy
- Code
- 05
Poll Until a Typed Result Is Ready
- easy
- Code
- 06
Debounce a Function You Can Cancel, Typed
- medium
- Code
- 07
Throttle a Function, Keeping Its Types
- medium
- Code
- 08
Run Async Work Exclusively with a Typed Mutex
- medium
- Code
- 09
Process Items One at a Time with a Typed Worker
- medium
- Code
- 10
Map with a Concurrency Limit, Typed and in Order
- medium
- Code
- Pro
- 11
Share In-Flight Requests per Key, Typed
- medium
- Code
- Pro
- 12
Batch an Async Stream with a Typed Generator
- medium
- Code
- 13
Limit Concurrent Work with a Typed Semaphore
- hard
- Code
- 14
Settle a Tuple of Promises, Typed per Element
- hard
- Code
- Pro
- 15
Race Named Promises and Know Which Won
- hard
- Code
- Pro