Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractDriver.php

function AbstractDriver::now

Returns the current event loop time in second increments.

Note this value does not necessarily correlate to wall-clock time, rather the value returned is meant to be used in relative comparisons to prior values returned by this method (intervals, expiration calculations, etc.).

3 calls to AbstractDriver::now()
AbstractDriver::delay in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Delay the execution of a callback.
AbstractDriver::enable in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Enable a callback to be active starting in the next tick.
AbstractDriver::repeat in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Repeatedly execute a callback.
4 methods override AbstractDriver::now()
EvDriver::now in vendor/revolt/event-loop/src/EventLoop/Driver/EvDriver.php
Returns the current event loop time in second increments.
EventDriver::now in vendor/revolt/event-loop/src/EventLoop/Driver/EventDriver.php
Returns the current event loop time in second increments.
StreamSelectDriver::now in vendor/revolt/event-loop/src/EventLoop/Driver/StreamSelectDriver.php
Returns the current event loop time in second increments.
UvDriver::now in vendor/revolt/event-loop/src/EventLoop/Driver/UvDriver.php
Returns the current event loop time in second increments.

File

vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php, line 416

Class

AbstractDriver
Event loop driver which implements all basic operations to allow interoperability.

Namespace

Revolt\EventLoop\Internal

Code

protected abstract function now() : float;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal