We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08cb086 commit 8de2745Copy full SHA for 8de2745
lib/concurrent/executor/executor.rb
@@ -208,12 +208,13 @@ def kill_execution
208
209
module JavaExecutor
210
include Executor
211
+ java_import 'java.lang.Runnable'
212
213
# @!macro executor_method_post
214
def post(*args)
215
raise ArgumentError.new('no block given') unless block_given?
216
if running?
- executor_submit = @executor.java_method(:submit, [JavaConcurrent::Runnable.java_class])
217
+ executor_submit = @executor.java_method(:submit, [Runnable.java_class])
218
executor_submit.call { yield(*args) }
219
true
220
else
0 commit comments