1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/lib/Internal/Watcher.php
Aaron Piotrowski ca827319ec Standard updates and more
Update for changes in async-interop/event-loop.
Do not invalidate delay and defer on disable.
Better watcher ID generation.
Throw if enabling invalid watcher.
2016-05-27 10:16:36 -05:00

40 lines
589 B
PHP

<?php
namespace Amp\Loop\Internal;
class Watcher {
const DEFER = 0b00000001;
const TIMER = 0b00000110;
const DELAY = 0b00000010;
const REPEAT = 0b00000100;
const IO = 0b00011000;
const READABLE = 0b00001000;
const WRITABLE = 0b00010000;
const SIGNAL = 0b00100000;
/**
* @var int
*/
public $type;
/**
* @var string
*/
public $id;
/**
* @var callable
*/
public $callback;
/**
* @var mixed
*/
public $data;
/**
* @var mixed
*/
public $value;
}