lib/alexandria/execution_queue.rb in alexandria-book-collection-manager-0.7.1 vs lib/alexandria/execution_queue.rb in alexandria-book-collection-manager-0.7.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # Copyright (C) 2005-2006 Laurent Sansonetti # # Alexandria is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the @@ -12,11 +14,9 @@ # # You should have received a copy of the GNU General Public # License along with Alexandria; see the file COPYING. If not, # write to the Free Software Foundation, Inc., 51 Franklin Street, # Fifth Floor, Boston, MA 02110-1301 USA. - -require 'thread' # Provides a way for two threads to communicate via Proc objects. # # Thread A can request calls, providing a Proc object and runtime arguments, # and thread B can iterate through the queue and execute the first call it