Skip to content

//core/com.petersamokhin.vksdk.core.api/BatchRequestExecutor

BatchRequestExecutor

[common]\ class BatchRequestExecutor@JvmOverloads()constructor(token: String, settings: VkSettings, json: Json) : CoroutineScope

https://vk.com/dev/execute

Constructors

BatchRequestExecutor [common]
@JvmOverloads()
fun BatchRequestExecutor(token: String, settings: VkSettings, json: Json = defaultJson())

Types

Name Summary
Companion [common]
object Companion

Functions

Name Summary
enqueue [common]
fun enqueue(item: BatchRequestItem)
Add item to the queue
[common]
fun enqueue(items: Collection<BatchRequestItem>)
Add items to the queue
observeResults [common]
@FlowPreview()
@ExperimentalCoroutinesApi()
fun observeResults(): Flow<BatchRequestResult>
stop [common]
fun stop()
Stop the loop

Properties

Name Summary
coroutineContext [common]
open override val coroutineContext: CoroutineContext
Coroutine context for the loop