Attachments

Defines APIs to create upload and download attachment URL.

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun createAttachmentUrl(): HubPayload<Map<HttpMethod, URL>>

Retrieves a pair of URL which then can be used to upload and transfer attachments via hub-server.

Link copied to clipboard
fun <T> HubClientCoroutineContextStrategy.runBlockingWithContext(block: suspend CoroutineScope.() -> T): T

Runs a new coroutine in HubClientCoroutineContextStrategy.clientCoroutineContext context and blocks the current thread until its completion. This function should not be used from a coroutine.

Properties

Link copied to clipboard

The hubClient's-coroutine-context. It can be used to explicit define in which CoroutineContext the new client will run.