MCPcopy Create free account
hub / github.com/Effect-TS/effect / completed

Function completed

packages/sql/pg/test/PgPool.in-process.test.ts:33–40  ·  view source on GitHub ↗
(tag: string, status: string)

Source from the content-addressed store, hash-verified

31])
32
33const completed = (tag: string, status: string) =>
34 Buffer.concat([
35 backendMessage("1", Buffer.alloc(0)),
36 backendMessage("2", Buffer.alloc(0)),
37 backendMessage("n", Buffer.alloc(0)),
38 backendMessage("C", Buffer.from(`${tag}\0`)),
39 backendMessage("Z", Buffer.from(status))
40 ])
41
42const waitFor = (predicate: () => boolean) =>
43 Effect.promise(async () => {

Callers 1

writeFunction · 0.70

Calls 2

fromMethod · 0.80
backendMessageFunction · 0.70

Tested by

no test coverage detected