async

abstract fun async(scope: CoroutineScope, ioDispatcher: CoroutineDispatcher = Dispatchers.IO): AsyncTerminalMethods

Switches the builder to asynchronous mode. Requires providing a CoroutineScope in which callback will be launched.

Return

New builder instance with asynchronous terminal methods.

Parameters

scope

Coroutine scope (typically from ViewModel or request handler) for lifecycle management.

ioDispatcher

Dispatcher on which the query should be executed.