opRegistryOf

fun opRegistryOf(vararg registrars: OpRegistrar): OpRegistry

Builds an OpRegistry populated by registrars, installed in the given order.

The one-line startup surface for auto-registered ops:

val registry = opRegistryOf(WarpOps)

Return

A fresh OpRegistry holding every registrar's ops.

Parameters

registrars

The registrars to install, typically the generated WarpOps objects of every op-carrying package.

See also

Throws

if two registrars register the same OpId.