metal-pony / bucket

haz bucket
0 stars 0 forks source link

EventBus Shutdown behavior #56

Open metal-pony opened 1 year ago

metal-pony commented 1 year ago

From https://github.com/sparklicorn/bucket/issues/15

Shutdown behavior

Currently, the only way to stop the worker thread is to call dispose(boolean force):

Proposed:

1) Add a soft shutdown method that will cause the work queue to reject all new items, and cause the thread to exit once all work queue items have finished executing.

2) Add an option to automatically shut down after a given amount of time has passed without an event being thrown.