yield Installation $ npm install @chengaoyuan/yield Usage import async_yield from "@chengaoyuan/yield"; async function func() { console.log(Date.now()); await async_yield(); console.log(Date.now()); } func(); Testing $ npm test