duplex<I, O> function

Future<Duplex<I, O>> duplex<I, O>(
  1. Transport transport,
  2. Method method,
  3. Codec<I> input,
  4. Codec<O> output, {
  5. CallOptions options = const CallOptions(),
})

Implementation

Future<Duplex<I, O>> duplex<I, O>(
    Transport transport, Method method, Codec<I> input, Codec<O> output,
    {CallOptions options = const CallOptions()}) async {
  return Duplex._(
      await transport.open(method, options: options), input, output);
}