mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
Migrate to new register / unregister API for TaskScheduler
This commit is contained in:
parent
fc503b27bf
commit
fed48ada7d
@ -2,6 +2,8 @@
|
||||
"name": "amphp/amp",
|
||||
"homepage": "http://amphp.org/amp",
|
||||
"description": "A non-blocking concurrency framework for PHP applications.",
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"keywords": [
|
||||
"async",
|
||||
"asynchronous",
|
||||
|
@ -4,7 +4,7 @@ namespace Amp\Internal;
|
||||
|
||||
use Concurrent\TaskScheduler;
|
||||
|
||||
TaskScheduler::setDefaultScheduler($GLOBALS["__amp_scheduler"] = new Scheduler);
|
||||
TaskScheduler::register(new Scheduler);
|
||||
|
||||
/**
|
||||
* Creates a `TypeError` with a standardized error message.
|
||||
|
Loading…
Reference in New Issue
Block a user