Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Thread.fork

(*untyped args) -> untyped
Thread.start([args]*) {|args| block } → thread
Thread.fork([args]*) {|args| block } → thread

Basically the same as ::new. However, if class Thread is subclassed, then calling start in that subclass will not invoke the subclass’s initialize method.