PollingSession

class PollingSession(protocol: EUCProtocol, scope: CoroutineScope, now: () -> Long, trace: (QueryTraceEvent) -> Unit, enqueue: (ByteArray, () -> Boolean, () -> Unit, () -> Unit) -> Unit, onError: (Exception) -> Unit)(source)

Coroutine driver; transport is supplied by the connector and the caller's scope is never owned.

Constructors

Link copied to clipboard
constructor(protocol: EUCProtocol, scope: CoroutineScope, now: () -> Long, trace: (QueryTraceEvent) -> Unit, enqueue: (ByteArray, () -> Boolean, () -> Unit, () -> Unit) -> Unit, onError: (Exception) -> Unit)

Functions

Link copied to clipboard
Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()