request<T> abstract method

Future request<T>(
  1. T data, {
  2. List<String>? paths,
  3. String? separator,
  4. Map<String, String>? arguments,
  5. Duration? timeout,
})

Sends a request and waits for the result of a handler.

Wildcard paths are not supported: * and > throw EventBusException. When no handler is registered the returned future fails with NoHandlerException. Use fire when no answer is expected.

Implementation

Future<dynamic> request<T>(
  T data, {
  List<String>? paths,
  String? separator,
  Map<String, String>? arguments,
  Duration? timeout,
});