Skip to content

Document the Concurrency facade on async tasks for mobile v4 - #626

Open
gwleuverink wants to merge 13 commits into
docs/async-task-closuresfrom
docs/concurrency-driver
Open

gwleuverink wants to merge 13 commits into
docs/async-task-closuresfrom
docs/concurrency-driver

Conversation

@gwleuverink

@gwleuverink gwleuverink commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Sits on docs/async-task-closures. The async tasks page gets a short section about Laravel's Concurrency facade inside an app, added in NativePHP/mobile-air#792. It covers what is different in an app and links to Laravel's docs for the rest. Draft until that PR is merged.

  • run() and defer() run each closure as an async task, and where that driver is the default.
  • The closures follow the rules of the work closure.
  • run() holds the screen, how it compares with AsyncTask::all(), and where run() and defer() may be called.
  • Testing a screen that calls Concurrency::run().

The queues page says what a job on Laravel's background connection does, and what to use instead of Concurrency::run() in a job.

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

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