()
| 108 | } |
| 109 | |
| 110 | func (s *Stream) init() { |
| 111 | s.initOnce.Do(func() { |
| 112 | s.queue = make(chan callbackCh, s.pool.MaxGoroutines()+1) |
| 113 | |
| 114 | // Start the callbacker. |
| 115 | s.callbackerHandle.Go(s.callbacker) |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | // callbacker is responsible for calling the returned callbacks in the order |
| 120 | // they were submitted. There is only a single instance of callbacker running. |
no test coverage detected