addMultiton

abstract fun addMultiton(ref: RefMaker? = null, sync: Boolean = true, creator: BindingDI<Any>.(A) -> T)

Adds a multiton binding to the set.

Parameters

ref

The reference maker to use.

sync

Whether the multiton should be thread-safe.

creator

The function that creates an instance for each unique argument.