• home
    • thoughts
    • Work
    • RSS

Thenables in Javascript

Sep 11, 2025
#js#uth

You can write custom awaitable (thenable) objects in javascript.

I think svelte (Rich harris 😅) mentioned using this to support the top level await that was introduced.

spiral into this while reading on how coroutines was designed in python.

thenables in js thenables in js

/share

Built by me.

✶

Owostack

Billing engine for the AI products.

→
✸

Thirdpen

Interactive learning with AI.

→
✹

Littlestats

Analytics for solo creators.

→
about / linkedin / photos /