Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • FutureTickQueue
  • NextTickQueue
  • Overview
  • Namespace
  • Class
  • Tree

Class FutureTickQueue

Namespace: React\EventLoop\Tick
Located at Tick/FutureTickQueue.php
Methods summary
public
# __construct( React\EventLoop\LoopInterface $eventLoop )

Parameters

$eventLoop
React\EventLoop\LoopInterface
$eventLoop The event loop passed as the first parameter to callbacks.
public
# add( callable $listener )

Add a callback to be invoked on a future tick of the event loop.

Add a callback to be invoked on a future tick of the event loop.

Callbacks are guaranteed to be executed in the order they are enqueued.

Parameters

$listener
callable
$listener The callback to invoke.
public
# tick( )

Flush the callback queue.

Flush the callback queue.

public boolean
# isEmpty( )

Check if the next tick queue is empty.

Check if the next tick queue is empty.

Returns

boolean
Ratchet API documentation generated by ApiGen 2.8.0