MCPcopy
hub / github.com/postcss/postcss / async2

Function async2

test/processor.test.ts:250–261  ·  view source on GitHub ↗
(css: Root)

Source from the content-addressed store, hash-verified

248 }, 1)
249 })
250 let async2 = (css: Root): Promise<void> =>
251 new Promise<void>(resolve => {
252 equal(starts, 1)
253 equal(finish, 1)
254
255 starts += 1
256 setTimeout(() => {
257 css.append('b {}')
258 finish += 1
259 resolve()
260 }, 1)
261 })
262 let r = await new Processor([async1, async2]).process('', { from: 'a' })
263 is(starts, 2)
264 is(finish, 2)

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…