tryConsumeValue

open fun tryConsumeValue(key: String, catcher: BoomerangCatcher)(source)

Tries to consume a value using a BoomerangCatcher. Default implementation drops the value if it's caught (catcher returns true).

Parameters

key

The key to try to catch the value for

catcher

The BoomerangCatcher to use for catching the value