wireSerializer

fun <V> wireSerializer(vSerializer: KSerializer<V>): KSerializer<Fugue<V>>

Returns a KSerializer for Fugue<V> that correctly threads vSerializer through the op-log, avoiding CBOR polymorphism limitations.

Use this instead of a generated serializer when wiring Fugue into a us.tractat.kuilt.quilter.Quilter or any transport that needs an explicit element-type serializer.

Parameters

vSerializer

the KSerializer for element type V.