receiveOrNull
Deprecated (with error)
receiveOrNull is ambiguous with receiveNullable and going to be removed in 3.0.0. Please consider replacing it with runCatching with receive or receiveNullable
Replace with
kotlin.runCatching { this.receiveNullable<T>() }.getOrNull()
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type.
Deprecated (with error)
receiveOrNull is ambiguous with receiveNullable and going to be removed in 3.0.0. Please consider replacing it with runCatching with receive or receiveNullable
Replace with
kotlin.runCatching { this.receiveNullable<T>() }.getOrNull()
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type.
Parameters
type to be received.
Deprecated (with error)
receiveOrNull is ambiguous with receiveNullable and going to be removed in 3.0.0. Please consider replacing it with runCatching with receive or receiveNullable
Replace with
kotlin.runCatching { this.receiveNullable<T>() }.getOrNull()
Receives content for this request.
Return
instance of T received from this call, or null
if content cannot be transformed to the requested type..
Parameters
instance of KClass
specifying type to be received.