MultiTile

class MultiTile<K : Any, V>(block: suspend Mosaic.(Set<K>) -> Map<K, 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.

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.