Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.5.0] - 2025-10-31

### Added
- **TrueAsync API**: Added `ZEND_ASYNC_SCHEDULER_LAUNCH()` macro for scheduler initialization

### Changed
- **Deadlock Detection**: Replaced warnings with structured exception handling
- Deadlock detection now throws `Async\DeadlockError` exception instead of multiple warnings
- **Breaking Change**: Applications relying on deadlock warnings
- **Breaking Change**: Applications relying on deadlock warnings
will need to be updated to catch `Async\DeadlockError` exceptions

## [0.4.0] - 2025-09-30
Expand Down
1 change: 1 addition & 0 deletions async_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ void async_api_register(void)
{
zend_async_scheduler_register(PHP_ASYNC_NAME_VERSION,
false,
async_scheduler_launch,
async_new_coroutine,
async_new_scope,
(zend_async_new_context_t) async_context_new,
Expand Down
2 changes: 1 addition & 1 deletion scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ bool async_scheduler_launch(void)
return false;
}

if (EG(active_fiber)) {
if (UNEXPECTED(EG(active_fiber))) {
async_throw_error("The True Async Scheduler cannot be started from within a Fiber");
return false;
}
Expand Down
Loading