class DeclaredField<T>
A simple wrapper around a Field object providing type safe read and write access using value, ignoring the field's visibility. |
|
object Emoji
A simple wrapper class that contains icons and support for printing them only when we're connected to a terminal. |
|
interface FlowStateMachine<R>
This is an internal interface that is implemented by code in the node module. You should look at FlowLogic. |
|
data class InputStreamAndHash |
|
class LazyPool<A>
A lazy pool of resources A. |
|
class LazyStickyPool<A : Any>
A LazyStickyPool is a lazy pool of resources where a borrow may "stick" the borrowed instance to an object. Any subsequent borrows using the same object will return the same pooled instance. |
|
class LifeCycle<S : Enum<S>>
This class provides simple tracking of the lifecycle of a service-type object. S is an enum enumerating the possible states the service can be in. |
|
class ThreadBox<out T>
A threadbox is a simple utility that makes it harder to forget to take a lock before accessing some shared state. Simply define a private class to hold the data that must be grouped under the same lock, and then pass the only instance to the ThreadBox constructor. You can now use the locked method with a lambda to take the lock in a way that ensures it'll be released if there's an exception. |
|
class WriteOnceProperty<T : Any>
A write-once property to be used as delegate for Kotlin var properties. The expectation is that this is initialised prior to the spawning of any threads that may access it and so there's no need for it to be volatile. |
fun elapsedTime(block: () -> Unit): Duration
Executes the given code block and returns a Duration of how long it took to execute in nanosecond precision. |
|
fun <T> logElapsedTime(label: String, logger: Logger? = null, body: () -> T): T |