instate
effect.type.instate
type.instate(R:Any,e effect.this,code Function R,def Unary R effect.this) => R¶[src]
Type Parameters
Arguments
code Function R¶[src]
the code to execute with `e` instated.
def Unary R effect.this¶[src]
the lazy default result to use if effect aborts
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
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()`.