ReactiveX/Rx.rb

View on GitHub
examples/disposable.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rx'

disposable = Rx::Disposable.create {
    puts 'disposed'
}

disposable.dispose
# => disposed

disposable = Rx::Disposable.empty

disposable.dispose # Does nothing