io.vertx.ext.sync

## Interface Receiver<T>

- All Known Subinterfaces:
    HandlerReceiverAdaptor<T>

  Deprecated.
  This project will be removed with Quasar being effectively abandoned

      @Deprecated
      public interface Receiver<T>

  Represents a synchronous receiver of events.

  Note that the `receive` methods may block the calling fiber but will not block an underlying kernel thread.

  Author:
    Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `receive()` Deprecated. Return an event when one is available.
    `T` | `receive(long timeout)` Deprecated. Return an event when one is available.
    `co.paralleluniverse.strands.channels.ReceivePort<T>` | `receivePort()` Deprecated.

- - ### Method Detail

    - #### receivePort

          co.paralleluniverse.strands.channels.ReceivePort<T> receivePort()

      Deprecated.
      Returns:
        the underlying Quasar receivePort

    - #### receive

          @Suspendable
          T receive()

      Deprecated.
      Return an event when one is available. This method will block the fiber until one is available. No kernel thread is blocked.
      Returns:
        the event

    - #### receive

          @Suspendable
          T receive(long timeout)

      Deprecated.
      Return an event when one is available. This method will block the fiber until one is available, or timeout occurs. No kernel thread is blocked.
      Parameters:
        `timeout` - the max amount of time in ms to wait for an event to be available
      Returns:
        the event

Copyright © 2024 Eclipse. All rights reserved.