Skip to content

Instantly share code, notes, and snippets.

View danielscottjames's full-sized avatar

Daniel James danielscottjames

View GitHub Profile
@danielscottjames
danielscottjames / async.ts
Last active March 16, 2023 16:31
TypeScript Async Code Examples
//@ts-check
/* #region Schedule a new task */
setTimeout(() => {
console.log("In Timeout");
}, 100);
console.log("After setTimeout");
/* #endregion */
/* #region No Preemption */