| 2780 | Result AwaitTaskRegistryWaitAllAwaiter::cancel(void* object, AwaitEventLoop& eventLoop) |
| 2781 | { |
| 2782 | return static_cast<AwaitTaskRegistryWaitAllAwaiter*>(object)->cancel(eventLoop); |
| 2783 | } |
| 2784 | |
| 2785 | Result AwaitTaskRegistryWaitAllAwaiter::cancel(AwaitEventLoop&) |
| 2786 | { |
| 2787 | operationResult = AwaitCancelledResult(); |
| 2788 | Result cancelResult = registry.cancelAll(); |
| 2789 | if (not cancelResult) |
| 2790 | { |
| 2791 | return cancelResult; |
| 2792 | } |
| 2793 | if (registry.activeCount() == 0) |
| 2794 | { |
| 2795 | finish(operationResult); |