LogChannel

interface LogChannel<T>

A named stream of typed data within a FateWeaver log.

A channel's name is unique within its log, and its schema fixes how values of type T are encoded. Use one channel per thing you want to plot.

Parameters

T

The type of objects that can be written to this channel

Inheritors

Properties

Link copied to clipboard
abstract val name: String

The unique name of this channel within the log.

Link copied to clipboard
abstract val schema: FateSchema<T>

The schema used to serialize objects of type T for this channel.

Functions

Link copied to clipboard
abstract fun put(obj: T)

Writes an object to this channel.