Hello,
Does anyone know the reason why in the following code snippet only the last “exec” is actually executed?
.asLongAs( session=>session.isAttributeDefined(“waitInterval”))
{
exec( session=>session.removeAttribute(“waitInterval”) )
exec( session=> {
println(session)
session
})
}
Once I get into the loop I can never get out simply because the first “exec” call does not fire.
The reason I know this is because if I switch the two “exec” calls then I stop getting session dumps using “println”.
If anyone can shine some light on this issue I’d greatly appreciate it.
Thank you.