It would be nice if setAsHandled could take a boolean (default true for backwards compatibility) that would allow it to behave as setAsNotHandled. This is especially helpful when building messages using message sets since it can avoid storing a reference to the message just to conditionally call this later.
It would be nice if
setAsHandled
could take a boolean (defaulttrue
for backwards compatibility) that would allow it to behave assetAsNotHandled
. This is especially helpful when building messages using message sets since it can avoid storing a reference to the message just to conditionally call this later.