Something went wrong. Try again.
Bluesky app fork with some witchin' additions 馃挮 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
179 B 路 5 lines
TypeScript
at main
123456export async function wait<T>(delay: number, fn: T): Promise<Awaited<T>> { return await Promise.all([fn, new Promise(y => setTimeout(y, delay))]).then( arr => arr[0], )}