Skip to content

Document AsyncTask::all() and wait() for mobile v4 - #624

Open
gwleuverink wants to merge 10 commits into
mainfrom
docs/async-task-all
Open

gwleuverink wants to merge 10 commits into
mainfrom
docs/async-task-all

Conversation

@gwleuverink

@gwleuverink gwleuverink commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The async tasks page gets a "Grouping tasks" section about AsyncTask::all(), added in NativePHP/mobile-air#790. Draft until that PR is merged.

  • The results: their keys, their order, and how a screen hears of them.
  • Task classes in a group.
  • What happens to the other tasks when one fails.
  • Timeouts.
  • wait(): what it blocks, what it throws and where it may be called.
  • Testing a group with AsyncTask::fake().

"Running several at once" says how many tasks run at the same time, and how to raise it. "The work closure must be static" also says what happens to a task that captures something that can't be sent, such as an open file.

@gwleuverink
gwleuverink marked this pull request as ready for review December 2, 2026 09:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant