diff --git a/composer.json b/composer.json index d614e4a..b893838 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/lib/Internal/functions.php b/lib/Internal/functions.php index a5a1a85..f7d0db7 100644 --- a/lib/Internal/functions.php +++ b/lib/Internal/functions.php @@ -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.