Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-26.11.1 | composer require openswoole/core:26.11.1
<?php OpenSwoole\Coroutine::disableScheduler(): bool
Returns true on success, otherwise false.
Disable preemptive scheduler.
It is the same as ini_set("openswoole.enable_preemptive_scheduler", "0");.
<?php
OpenSwoole\Coroutine::disableScheduler();
co::run(function () {
//
});