AbortSignal.timeout / any Playground

Bagas runs to the market on a deadline from Mrs. Sari’s stopwatch: AbortSignal.timeout calls him back by itself, AbortSignal.any joins in Mr. Tono’s cancel…

The key idea

A signal that aborts by itself, with its own reason

Try it in this playground