Port

Functions

Link copied to clipboard
open operator fun invoke(scope: Port<REQ, RES>.() -> Unit)

Allows interactions with the port within a designated DSL scope.

Link copied to clipboard
abstract fun process(request: REQ): RES

open fun process(request: REQ, block: (RES) -> Unit)

Processes the given request and handles the response using the provided block.

Link copied to clipboard
open infix fun takes(request: REQ): RES

Processes the given request and returns the resulting response.