Skip to content

Commit 8841a89

Browse files
committed
Remove outdated documentation about constructor redefinition when including Concurrent::Async
Closes #863
1 parent 6a79be0 commit 8841a89

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/concurrent-ruby/concurrent/async.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,6 @@ module Concurrent
5858
# end
5959
# ```
6060
#
61-
# When defining a constructor it is critical that the first line be a call to
62-
# `super` with no arguments. The `super` method initializes the background
63-
# thread and other asynchronous components.
64-
#
65-
# ```
66-
# class BackgroundLogger
67-
# include Concurrent::Async
68-
#
69-
# def initialize(level)
70-
# super()
71-
# @logger = Logger.new(STDOUT)
72-
# @logger.level = level
73-
# end
74-
#
75-
# def info(msg)
76-
# @logger.info(msg)
77-
# end
78-
# end
79-
# ```
80-
#
8161
# Mixing this module into a class provides each object two proxy methods:
8262
# `async` and `await`. These methods are thread safe with respect to the
8363
# enclosing object. The former proxy allows methods to be called

0 commit comments

Comments
 (0)