Any suggestions of ConcurrentModificationException? #1206
Unanswered
chengenzhao
asked this question in
Q&A
Replies: 1 comment
-
I think it would be nice to have an OnceAction or ActionOnce getInput().addOnceAction(...)
//or
getInput().addActionOnce(...) The action will be triggered only once |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi:
We tried to create a mechanism that when we press Enter button then the input remove this trigger to have a one shot action,
so we write the code like this
We tried to remove the listener in the onAcionBegin method but got the exception,
so we use Platform run later method to queue up this lambda again
but not very sure this is the best practice or not
or did I miss some actions like action once or sth. similar?
Please let me know
Thanks
Beta Was this translation helpful? Give feedback.
All reactions