-
Notifications
You must be signed in to change notification settings - Fork 419
Closed
Labels
bugA bug in the library or documentation.A bug in the library or documentation.
Description
concurrent-ruby/lib/concurrent-ruby/concurrent/async.rb
Lines 61 to 79 in 7dc6eb0
# 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 | |
# ``` |
I don't think that is necessary anymore, since everything related to initialization now lives in .new
?
Metadata
Metadata
Assignees
Labels
bugA bug in the library or documentation.A bug in the library or documentation.