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

Breadcrumb

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

interface FutureInterface

@template-covariant T

Hierarchy

  • interface \OpenTelemetry\SDK\Common\Future\FutureInterface

Expanded class hierarchy of FutureInterface

All classes that implement FutureInterface

13 files declare their use of FutureInterface
ConsoleExporter.php in vendor/open-telemetry/sdk/Logs/Exporter/ConsoleExporter.php
ConsoleSpanExporter.php in vendor/open-telemetry/sdk/Trace/SpanExporter/ConsoleSpanExporter.php
InMemoryExporter.php in vendor/open-telemetry/sdk/Logs/Exporter/InMemoryExporter.php
LogRecordExporterInterface.php in vendor/open-telemetry/sdk/Logs/LogRecordExporterInterface.php
LogsExporter.php in vendor/open-telemetry/exporter-otlp/LogsExporter.php

... See full list

File

vendor/open-telemetry/sdk/Common/Future/FutureInterface.php, line 12

Namespace

OpenTelemetry\SDK\Common\Future
View source
interface FutureInterface {
    
    /**
     * @psalm-return T
     */
    public function await();
    
    /**
     * @psalm-template U
     * @psalm-param Closure(T): U $closure
     * @psalm-return FutureInterface<U>
     *
     * @psalm-suppress InvalidTemplateParam
     */
    public function map(Closure $closure) : FutureInterface;
    
    /**
     * @psalm-template U
     * @psalm-param Closure(\Throwable): U $closure
     * @psalm-return FutureInterface<T|U>
     */
    public function catch(Closure $closure) : FutureInterface;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
FutureInterface::await public function @psalm-return T 2
FutureInterface::catch public function @psalm-template U
@psalm-param Closure(\Throwable): U $closure
@psalm-return FutureInterface&lt;T|U&gt;
2
FutureInterface::map public function @psalm-template U
@psalm-param Closure(T): U $closure
@psalm-return FutureInterface&lt;U&gt;
2

API Navigation

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