File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
lib/concurrent-ruby/concurrent Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -58,26 +58,6 @@ module Concurrent
58
58
# end
59
59
# ```
60
60
#
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
- #
81
61
# Mixing this module into a class provides each object two proxy methods:
82
62
# `async` and `await`. These methods are thread safe with respect to the
83
63
# enclosing object. The former proxy allows methods to be called
You can’t perform that action at this time.
0 commit comments