Safe shutdown?

28 views
Skip to first unread message

JAmes Atwill

unread,
Aug 23, 2012, 6:38:12 PM8/23/12
to hawtdi...@googlegroups.com
Is there a recommended way to shutdown hawtdispatch, or just poison messages with a countdown latch?

Thanks!

Hiram Chirino

unread,
Aug 23, 2012, 6:49:00 PM8/23/12
to hawtdi...@googlegroups.com
If you don't mind using non-public API's... it's:

DispatcherConfig.getDefaultDispatcher().shutdown();


On Thu, Aug 23, 2012 at 6:38 PM, JAmes Atwill <jat...@linuxstuff.org> wrote:
Is there a recommended way to shutdown hawtdispatch, or just poison messages with a countdown latch?

Thanks!




--

Hiram Chirino

Software Fellow | FuseSource Corp.

chi...@fusesource.com | fusesource.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo




Reply all
Reply to author
Forward
0 new messages