Skip to content

Commit

Permalink
Remove outdated documentation about constructor redefinition when inc…
Browse files Browse the repository at this point in the history
…luding Concurrent::Async

Closes ruby-concurrency#863
  • Loading branch information
markiz committed Jul 21, 2020
1 parent 6a79be0 commit 8841a89
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/concurrent-ruby/concurrent/async.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8841a89

Please sign in to comment.