Commit e136ba2
committed
#66: Add ZEND_ASYNC_SCHEDULER_LAUNCH() to TrueAsync public API
Expose async_scheduler_launch() function through the TrueAsync API to allow
extensions to explicitly initialize and start the scheduler before creating
coroutines. This is particularly useful for extensions that need deterministic
scheduler initialization timing.
Changes:
- Add zend_async_scheduler_launch_t function pointer type
- Add ZEND_ASYNC_SCHEDULER_LAUNCH() macro for scheduler initialization
- Register scheduler_launch_fn as first parameter in zend_async_scheduler_register()
- Update CHANGELOG.md with API addition in version 0.5.01 parent a7dff7c commit e136ba2
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
1127 | 1128 | | |
1128 | 1129 | | |
1129 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| |||
0 commit comments