MCPcopy 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

5import { runDetached } from '@/lib/core/utils/background'
6
7const flushMicrotasks = () => new Promise((resolve) => setTimeout(resolve, 0))
8
9describe('runDetached', () => {
10 it('runs the work without the caller awaiting it', async () => {

Callers 1

background.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected