| 27 | } |
| 28 | |
| 29 | type 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 | |
| 39 | func (f *InnerFuture) Result() (string, error) { |
| 40 | f.once.Do(func() { |
nothing calls this directly
no outgoing calls
no test coverage detected