Tile

class Tile<T>(block: suspend Mosaic.() -> T)(source)

Representation of a single-value tile in Mosaic.

A tile encapsulates a suspending function that produces a single value of type T. Tiles are the fundamental building blocks of the Mosaic DSL and support automatic caching, concurrency, and dependency injection.

Constructors

Link copied to clipboard
constructor(block: suspend Mosaic.() -> T)

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<*>): Tile<T>

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

Link copied to clipboard
operator fun provideDelegate(thisRef: Any?, property: KProperty<*>): Tile<T>

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