EffectRegistry

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun get(effectClass: KClass<out Effect>): EffectHandler<*>?
Link copied to clipboard
fun getAsync(effectClass: KClass<out Effect>): AsyncEffectHandler<*>?
Link copied to clipboard
fun <E : Effect> register(effectClass: KClass<E>, handler: EffectHandler<E>)
Link copied to clipboard
fun <E : Effect> registerAsync(effectClass: KClass<E>, handler: AsyncEffectHandler<E>)

See AsyncEffectHandler — register an effect class here, not with register, not both.