Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ flushMicrotasks
Function
flushMicrotasks
apps/sim/lib/core/utils/background.test.ts:7–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
import
{ runDetached } from
'@/lib/core/utils/background'
6
7
const
flushMicrotasks = () =>
new
Promise((resolve) => setTimeout(resolve, 0))
8
9
describe(
'runDetached'
, () => {
10
it(
'runs the work without the caller awaiting it'
,
async
() => {
Callers
1
background.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected