[Groonga-commit] droonga/droonga-engine at ba7a325 [master] Give block for asynchronous call of a lambda

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 5 16:35:21 JST 2014


YUKI Hiroshi	2014-09-05 16:35:21 +0900 (Fri, 05 Sep 2014)

  New Revision: ba7a32539907e284b0c051d4e169b161883d41e8
  https://github.com/droonga/droonga-engine/commit/ba7a32539907e284b0c051d4e169b161883d41e8

  Message:
    Give block for asynchronous call of a lambda

  Modified files:
    lib/droonga/worker_process_agent.rb

  Modified: lib/droonga/worker_process_agent.rb (+3 -1)
===================================================================
--- lib/droonga/worker_process_agent.rb    2014-09-05 15:45:32 +0900 (f158316)
+++ lib/droonga/worker_process_agent.rb    2014-09-05 16:35:21 +0900 (2f3fc92)
@@ -56,7 +56,9 @@ module Droonga
         output.write(Messages::FINISH)
         output.on_write_complete do
           output.close
-          on_finish.call
+          on_finish.call do
+            yield
+          emd
         end
       else
         on_finish.call
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index