DrainAll returns a strategy that waits for all currently pending calls to complete before re-evaluating. Note: This strategy is optimal for independent async calls, but will over-wait if some calls depend on the results of others.
()
| 103 | // Note: This strategy is optimal for independent async calls, but will over-wait |
| 104 | // if some calls depend on the results of others. |
| 105 | func DrainAll() DrainStrategy { |
| 106 | return drainAll{} |
| 107 | } |
| 108 | |
| 109 | type drainAll struct{} |
| 110 |
no outgoing calls