receiveNullable

open suspend override fun <T> receiveNullable(typeInfo: TypeInfo): T?(source)

Deprecated

Use 'receive<T>(typeInfo)' with nullable T instead

Replace with

receive<T?>(typeInfo)

Receives content for this request. Receive operations for the same call must be sequential and must not be started from an ApplicationReceivePipeline interceptor.

Report a problem

Return

instance of T received from this call.

Parameters

typeInfo

instance specifying type to be received.

Throws

when content cannot be transformed to the requested type.

when another receive operation is in progress for this call.