You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve considered two options. Method handle() will execute on the storeThread or same thread.
Between lines of the code actions.offer(action) and handle(actions.poll()) it's possible that will add many items to the queue. But I'm not seeing problems without @syncronized.
I'm feeling that missed important stuff in the sample. Can you explain me about @synchronized in this case?
The text was updated successfully, but these errors were encountered:
What is happened if I'll remove
@syncronized
?I’ve considered two options. Method
handle()
will execute on thestoreThread
or same thread.Between lines of the code
actions.offer(action)
andhandle(actions.poll())
it's possible that will add many items to the queue. But I'm not seeing problems without@syncronized
.I'm feeling that missed important stuff in the sample. Can you explain me about
@synchronized
in this case?The text was updated successfully, but these errors were encountered: