1
0
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:
Niklas Keller 2018-07-19 20:19:20 +02:00
parent fc503b27bf
commit fed48ada7d
2 changed files with 3 additions and 1 deletions

View File

@ -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",

View File

@ -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.