From 8841a896b75eb8d68853bbe7669fc20f6319ee96 Mon Sep 17 00:00:00 2001 From: Mark Abramov Date: Tue, 21 Jul 2020 16:32:11 +0300 Subject: [PATCH] Remove outdated documentation about constructor redefinition when including Concurrent::Async Closes #863 --- lib/concurrent-ruby/concurrent/async.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/concurrent-ruby/concurrent/async.rb b/lib/concurrent-ruby/concurrent/async.rb index 0e99b638d..5e125e4a0 100644 --- a/lib/concurrent-ruby/concurrent/async.rb +++ b/lib/concurrent-ruby/concurrent/async.rb @@ -58,26 +58,6 @@ module Concurrent # end # ``` # - # When defining a constructor it is critical that the first line be a call to - # `super` with no arguments. The `super` method initializes the background - # thread and other asynchronous components. - # - # ``` - # class BackgroundLogger - # include Concurrent::Async - # - # def initialize(level) - # super() - # @logger = Logger.new(STDOUT) - # @logger.level = level - # end - # - # def info(msg) - # @logger.info(msg) - # end - # end - # ``` - # # Mixing this module into a class provides each object two proxy methods: # `async` and `await`. These methods are thread safe with respect to the # enclosing object. The former proxy allows methods to be called