option
Accesses the value of a given Option.
For example, if we have a helper function that sets some default options, and we want to know what maximum limit
it set, we can use:
collection.count {
// …
options {
println(option<LimitOption>()) // Will print an integer
}
}
Content copied to clipboard