mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Fix tabs → spaces
This commit is contained in:
parent
47357f209d
commit
fdf18dedd7
@ -11,13 +11,13 @@ include __DIR__.'/../../vendor/autoload.php';
|
|||||||
|
|
||||||
use Amp\Loop;
|
use Amp\Loop;
|
||||||
|
|
||||||
Loop::run(function() {
|
Loop::run(function () {
|
||||||
Loop::setState('test', new class {
|
Loop::setState('test', new class {
|
||||||
private $handle;
|
private $handle;
|
||||||
function __construct() {
|
public function __construct() {
|
||||||
$this->handle = Loop::repeat(10, function() {});
|
$this->handle = Loop::repeat(10, function () {});
|
||||||
}
|
}
|
||||||
function __destruct() {
|
public function __destruct() {
|
||||||
Loop::cancel($this->handle);
|
Loop::cancel($this->handle);
|
||||||
print "ok";
|
print "ok";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user