consume<R> method

R consume<R>(
  1. R code(
    1. T
    )
)

Blocks execution until the future is ready.

Implementation

external R consume<R>(R Function(T) code);