NamedAsyncThreads

class NamedAsyncThreads(val threadFactory: () -> AsyncInvokable = { AsyncThread2() })

Prevents a named invoke to happen at the same time (by effectively enqueuing by name). This class is thread-safe.

Constructors

Link copied to clipboard
constructor(threadFactory: () -> AsyncInvokable = { AsyncThread2() })

Types

Link copied to clipboard
class AsyncJob(val thread: AsyncInvokable)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend operator fun <T> invoke(name: String, func: suspend () -> T): T