MultiTile

class MultiTile<K : Any, V>(source)

Representation of a multi-value tile in Mosaic.

A multi-tile encapsulates a suspending function that produces multiple values based on a set of keys. Multi-tiles support automatic batching, caching, and parallel execution.

Within one Mosaic, pending uncached keys for the same MultiTile may combine before execution. There is no intentional wait; batch boundaries depend on scheduling. The same MultiTile retains one terminal outcome per equal key per Mosaic. Present nullable values succeed; omitted requested keys fail with NoSuchElementException. Bulk provider failure fails unfinished keys in that physical invocation, preserving outcomes already published. Per-key and chunk factories isolate their provider failures.

Constructors

Link copied to clipboard
constructor(block: suspend Mosaic.(Set<K>) -> Map<K, V>)

Properties

Link copied to clipboard

The first delegated property name bound to this tile, or null if none has been bound.

Functions

Link copied to clipboard
inline operator fun getValue(thisRef: Any?, property: KProperty<*>): MultiTile<K, V>

Returns this instance without allocating a wrapper or looking up the property.

Link copied to clipboard
operator fun provideDelegate(thisRef: Any?, property: KProperty<*>): MultiTile<K, V>

Captures the property name once. Aliases preserve this instance and its first bound name.