File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
76
76
- All ConnectionPool.<Request >, ConnectionPool.<Request >Typed and
77
77
ConnectionPool.<Request >Async methods. Instead you should use requests
78
78
objects + ConnectionPool.Do() (#241 )
79
+ - box.session.push() usage: Future.AppendPush() and Future.GetIterator()
80
+ methods, ResponseIterator and TimeoutResponseIterator types (#324 )
79
81
80
82
### Removed
81
83
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ func NewFuture() (fut *Future) {
128
128
129
129
// AppendPush appends the push response to the future.
130
130
// Note: it works only before SetResponse() or SetError()
131
+ //
132
+ // Deprecated: the method will be removed in the next major version,
133
+ // use Connector.NewWatcher() instead of box.session.push().
131
134
func (fut * Future ) AppendPush (resp * Response ) {
132
135
fut .mutex .Lock ()
133
136
defer fut .mutex .Unlock ()
@@ -208,6 +211,9 @@ func (fut *Future) GetTyped(result interface{}) error {
208
211
//
209
212
// - box.session.push():
210
213
// https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_session/push/
214
+ //
215
+ // Deprecated: the method will be removed in the next major version,
216
+ // use Connector.NewWatcher() instead of box.session.push().
211
217
func (fut * Future ) GetIterator () (it TimeoutResponseIterator ) {
212
218
futit := & asyncResponseIterator {
213
219
fut : fut ,
Original file line number Diff line number Diff line change 5
5
)
6
6
7
7
// ResponseIterator is an interface for iteration over a set of responses.
8
+ //
9
+ // Deprecated: the method will be removed in the next major version,
10
+ // use Connector.NewWatcher() instead of box.session.push().
8
11
type ResponseIterator interface {
9
12
// Next tries to switch to a next Response and returns true if it exists.
10
13
Next () bool
@@ -16,6 +19,9 @@ type ResponseIterator interface {
16
19
17
20
// TimeoutResponseIterator is an interface that extends ResponseIterator
18
21
// and adds the ability to change a timeout for the Next() call.
22
+ //
23
+ // Deprecated: the method will be removed in the next major version,
24
+ // use Connector.NewWatcher() instead of box.session.push().
19
25
type TimeoutResponseIterator interface {
20
26
ResponseIterator
21
27
// WithTimeout allows to set up a timeout for the Next() call.
You can’t perform that action at this time.
0 commit comments