React\Promise\CancellationQueueTest::doesNotCallCancelTwiceWhenStartedTwice PHP Метод

doesNotCallCancelTwiceWhenStartedTwice() публичный Метод

    public function doesNotCallCancelTwiceWhenStartedTwice()
    {
        $d = $this->getCancellableDeferred();
        $cancellationQueue = new CancellationQueue();
        $cancellationQueue->enqueue($d->promise());
        $cancellationQueue();
        $cancellationQueue();
    }