MCPcopy Create free account
hub / github.com/buke/quickjs-go / Await

Method Await

value.go:1141–1143  ·  view source on GitHub ↗

Await waits for promise resolution and executes pending jobs Similar to Context.Await but called on Value directly

()

Source from the content-addressed store, hash-verified

1139// Await waits for promise resolution and executes pending jobs
1140// Similar to Context.Await but called on Value directly
1141func (v *Value) Await() *Value {
1142 return v.ctx.Await(v)
1143}
1144
1145// =============================================================================
1146// CLASS INSTANCE SUPPORT METHODS (replaced invalid class ID constant)

Callers 3

TestContextPromiseFunction · 0.45
TestValueAwaitFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestContextPromiseFunction · 0.36
TestValueAwaitFunction · 0.36