restate-sdk 0.14.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/restate.rbs CHANGED
@@ -60,6 +60,10 @@ module Restate
60
60
  # ── Futures / Metadata / Control ──
61
61
 
62
62
  def self.wait_any: (*DurableFuture futures) -> [Array[DurableFuture], Array[DurableFuture]]
63
+ def self.all: (*untyped futures) -> CombinedFuture
64
+ def self.race: (*untyped futures) -> CombinedFuture
65
+ def self.any: (*untyped futures) -> CombinedFuture
66
+ def self.all_settled: (*untyped futures) -> CombinedFuture
63
67
  def self.request: () -> untyped
64
68
  def self.key: () -> String
65
69
  def self.cancel_invocation: (String invocation_id) -> void
@@ -97,12 +101,34 @@ module Restate
97
101
  def await: () -> untyped
98
102
  def completed?: () -> bool
99
103
  def or_timeout: (Numeric duration) -> untyped
104
+
105
+ private
106
+ def resolve!: () -> void
100
107
  end
101
108
 
102
109
  class DurableCallFuture < DurableFuture
103
110
  def initialize: (untyped ctx, Integer result_handle, Integer invocation_id_handle, output_serde: untyped) -> void
104
111
  def invocation_id: () -> String
105
112
  def cancel: () -> void
113
+
114
+ private
115
+ def resolve_call!: () -> void
116
+ end
117
+
118
+ class CombinedFuture
119
+ VALID_VARIANTS: Array[Symbol]
120
+ def initialize: (untyped ctx, Symbol variant, Array[untyped] children) -> void
121
+ def tree: () -> untyped
122
+ def await: () -> untyped
123
+ def completed?: () -> bool
124
+
125
+ private
126
+ def resolve_combined!: () -> void
127
+ def finalize_value: () -> untyped
128
+ def finalize_first_completed: () -> untyped
129
+ def finalize_all_succeeded: () -> Array[untyped]
130
+ def finalize_all_completed: () -> Array[Hash[Symbol, untyped]]
131
+ def finalize_first_succeeded: () -> untyped
106
132
  end
107
133
 
108
134
  class SendHandle
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restate-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Restate Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-29 00:00:00.000000000 Z
11
+ date: 2026-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async