Skip to content

Commit 4c1e7eb

Browse files
committed
feat: define TaskContextProxy#disconnect
There was previously no way to make a task context proxy completely stop working.
1 parent 2fc55fa commit 4c1e7eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/orocos/async/task_context_proxy.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ def reconnect(wait_for_task = false)
574574
wait if wait_for_task == true
575575
end
576576

577+
def disconnect
578+
@resolve_timer.stop
579+
remove_all_listeners
580+
end
581+
577582
main_thread_call def property(name, options = Hash.new)
578583
name = name.to_str
579584
options,other_options = Kernel.filter_options options, wait: @options[:wait]

0 commit comments

Comments
 (0)