sig/callbacks.rbs in httpx-0.13.2 vs sig/callbacks.rbs in httpx-0.14.0
- old
+ new
@@ -4,11 +4,13 @@
end
module Callbacks
def on: (Symbol) { (*untyped) -> void } -> void
def once: (Symbol) { (*untyped) -> void } -> void
+ def only: (Symbol) { (*untyped) -> void } -> void
def emit: (Symbol, *untyped) -> void
+ def callbacks_for?: (Symbol) -> bool
def callbacks: () -> Hash[Symbol, Array[_Callable]]
| (Symbol) -> Array[_Callable]
end
end
\ No newline at end of file