MCPcopy Index your code
hub / github.com/foxcpp/maddy / New

Function New

framework/future/future.go:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func New() *Future {
43 return &Future{notify: make(chan struct{})}
44}
45
46// Set sets the Future (value, error) pair. All currently blocked and future
47// Get calls will return it.

Callers 5

newSessionMethod · 0.92
TestRequireMatchingRDNSFunction · 0.92
TestFuture_SetBeforeGetFunction · 0.70
TestFuture_WaitFunction · 0.70
TestFuture_WaitCtxFunction · 0.70

Calls

no outgoing calls

Tested by 4

TestRequireMatchingRDNSFunction · 0.74
TestFuture_SetBeforeGetFunction · 0.56
TestFuture_WaitFunction · 0.56
TestFuture_WaitCtxFunction · 0.56