MCPcopy Create free account
hub / github.com/cloud-native-go/examples / InnerFuture

Struct InnerFuture

ch04/future.go:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29type InnerFuture struct {
30 once sync.Once
31 wg sync.WaitGroup
32
33 res string
34 err error
35 resCh <-chan string
36 errCh <-chan error
37}
38
39func (f *InnerFuture) Result() (string, error) {
40 f.once.Do(func() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected