invoke

open operator override fun invoke(exchange: M): R

Invokes the function with the message exchange.

Extracts the first argument from the exchange and calls the underlying function with just that single argument.

Return

The result of the function invocation

Parameters

exchange

The message exchange to process