Class: LLM::Function::Group
- Inherits:
-
Object
- Object
- LLM::Function::Group
- Defined in:
- lib/llm/function/group.rb
Overview
Abstract base class for all concurrency strategy groups. Each strategy (sequential, thread, fiber, async, fork, ractor) subclasses this and implements #alive?, #interrupt!, and #wait.
Direct Known Subclasses
Async::Group, Fiber::Group, Fork::Group, Ractor::Group, Sequential::Group, Thread::Group
Instance Method Summary collapse
- #alive? ⇒ Boolean abstract
- #interrupt! ⇒ nil (also: #cancel!) abstract
- #spawn ⇒ nil abstract
- #wait ⇒ Array<LLM::Function::Return> (also: #value) abstract
Instance Method Details
#alive? ⇒ Boolean
This method is abstract.
20 21 22 |
# File 'lib/llm/function/group.rb', line 20 def alive? raise NotImplementedError end |
#interrupt! ⇒ nil Also known as: cancel!
This method is abstract.
27 28 29 |
# File 'lib/llm/function/group.rb', line 27 def interrupt! raise NotImplementedError end |
#spawn ⇒ nil
This method is abstract.
13 14 15 |
# File 'lib/llm/function/group.rb', line 13 def spawn raise NotImplementedError end |
#wait ⇒ Array<LLM::Function::Return> Also known as: value
This method is abstract.
35 36 37 |
# File 'lib/llm/function/group.rb', line 35 def wait raise NotImplementedError end |