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
By default, EventBus uses cached non-daemon threads and they are only removed after 60 seconds of unuse. This prevents the JVM from shutting down. System.exit() can of course be used to shut down the JVM with non-daemon threads, but requires code by the user of EventBus.
So will setting the default to creating daemon threads be a better choice?
The text was updated successfully, but these errors were encountered:
probably can't.
because when the daemon threads and user threads finish their work,jvm will quit.
but [post] method and [subscribe] method would be called durring the runtime always
By default, EventBus uses cached non-daemon threads and they are only removed after 60 seconds of unuse. This prevents the JVM from shutting down.
System.exit()
can of course be used to shut down the JVM with non-daemon threads, but requires code by the user of EventBus.So will setting the default to creating daemon threads be a better choice?
The text was updated successfully, but these errors were encountered: