krisleech / wisper-celluloid

Provides async event broadcasting to Wisper using Celluloid
MIT License
17 stars 4 forks source link

Make termination of actor after message processed optional #1

Open krisleech opened 9 years ago

krisleech commented 9 years ago

Make termination optional (defaut to off) which will avoid overhead of invocation/cleanup of actor.

https://github.com/krisleech/wisper-celluloid/blob/master/lib/wisper/celluloid_broadcaster.rb#L18

Option can be set in broadcaster constructor, it will default to a configuration object.

Wisper::Celluloid.configure do |c|
  c.terminate_actor = true
end