ReleaseThreshold releases the pause, allowing the buffer to immediately read data beyond the pause threshold.
()
| 177 | // ReleaseThreshold releases the pause, allowing the buffer to immediately |
| 178 | // read data beyond the pause threshold. |
| 179 | func (ab *AsyncBuffer) ReleaseThreshold() { |
| 180 | ab.paused.Release() |
| 181 | } |
| 182 | |
| 183 | // Error returns the error that occurred during reading data in background. |
| 184 | func (ab *AsyncBuffer) Error() error { |