Documentation
¶
Overview ¶
Async tasks — managed background work, safe by construction.
A "fruit search" backed by a deliberately slow lookup. Compare this with the old pattern (see examples/sync-demo): there you keep a `Processing bool`, a hand-rolled `if Processing { return }` re-entry guard, a raw goroutine, and manual Refresh() calls. Here, Task() handles all of that:
- the closure runs OFF the event loop (so it may block), and never touches island fields directly — state changes go back through t.Apply;
- pending/progress bind without an app field via Busy()/Progress();
- WithRestart() cancels an in-flight search when a new one starts.
Click to show internal directories.
Click to hide internal directories.