Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

instate

effect.type.instate

(R 
type
, e effect.this.type, code Function R, def Unary R effect.this.type)
 => 
R
execute 'code' in a context where the effect instance `e` has been
installed for effect type `effect.this`.

In case `f` returns normally, this will return `f`'s result.

In case `f` aborts this effect, return `def()`.

Type Parameters

0.097dev (GIT hash 7935358ec8b7743224ffa00b87fbe7bbf70dc69e)
last changed: 2026-06-12