UI-owned scope disconnecting all its subscriptions and timers, in any token order. Owned callback captures survive self-close until the active dispatch returns. Arbitrary reference captures remain the caller's responsibility. Release before Scheduler.
More...
#include <scheduler.hpp>
|
|
| UiScope ()=default |
| | Empty closed scope.
|
|
| ~UiScope () |
| | Close on UI; wrong-thread destruction terminates.
|
| | UiScope (UiScope &&other) noexcept |
| | Transfer scope on UI.
|
| UiScope & | operator= (UiScope &&other) noexcept |
| | Close old scope, then transfer.
|
|
| UiScope (const UiScope &)=delete |
|
UiScope & | operator= (const UiScope &)=delete |
| std::expected< void, SchedulerError > | close () |
| | UI-only, idempotent; no worker join.
|
UI-owned scope disconnecting all its subscriptions and timers, in any token order. Owned callback captures survive self-close until the active dispatch returns. Arbitrary reference captures remain the caller's responsibility. Release before Scheduler.
◆ UiScope()
| portals::UiScope::UiScope |
( |
UiScope && | other | ) |
|
|
noexcept |
Transfer scope on UI.
- Parameters
-
| other | UI-owned token to empty and transfer into this token. |
◆ close()
UI-only, idempotent; no worker join.
- Returns
- Success after logical closure, including an empty scope; WRONG_THREAD leaves a live scope unchanged.
◆ operator=()
Close old scope, then transfer.
- Parameters
-
| other | UI-owned token to empty and transfer; self-assignment is a no-op. |
- Returns
- This token after replacing its previous ownership.
The documentation for this class was generated from the following file: