Class: LLM::Function::Group

Inherits:
Object
  • Object
show all
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.

Instance Method Summary collapse

Instance Method Details

#alive?Boolean

This method is abstract.

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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.

Returns:

  • (nil)

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/llm/function/group.rb', line 27

def interrupt!
  raise NotImplementedError
end

#spawnnil

This method is abstract.

Returns:

  • (nil)

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/llm/function/group.rb', line 13

def spawn
  raise NotImplementedError
end

#waitArray<LLM::Function::Return> Also known as: value

This method is abstract.

Returns:

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/llm/function/group.rb', line 35

def wait
  raise NotImplementedError
end