File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 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.
7676- All ConnectionPool.<Request >, ConnectionPool.<Request >Typed and
7777 ConnectionPool.<Request >Async methods. Instead you should use requests
7878 objects + ConnectionPool.Do() (#241 )
79+ - box.session.push() usage: Future.AppendPush() and Future.GetIterator()
80+ methods, ResponseIterator and TimeoutResponseIterator types (#324 )
7981
8082### Removed
8183
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ func NewFuture() (fut *Future) {
128128
129129// AppendPush appends the push response to the future.
130130// 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().
131134func (fut * Future ) AppendPush (resp * Response ) {
132135 fut .mutex .Lock ()
133136 defer fut .mutex .Unlock ()
@@ -208,6 +211,9 @@ func (fut *Future) GetTyped(result interface{}) error {
208211//
209212// - box.session.push():
210213// 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().
211217func (fut * Future ) GetIterator () (it TimeoutResponseIterator ) {
212218 futit := & asyncResponseIterator {
213219 fut : fut ,
Original file line number Diff line number Diff line change 55)
66
77// 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().
811type ResponseIterator interface {
912 // Next tries to switch to a next Response and returns true if it exists.
1013 Next () bool
@@ -16,6 +19,9 @@ type ResponseIterator interface {
1619
1720// TimeoutResponseIterator is an interface that extends ResponseIterator
1821// 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().
1925type TimeoutResponseIterator interface {
2026 ResponseIterator
2127 // WithTimeout allows to set up a timeout for the Next() call.
You can’t perform that action at this time.
0 commit comments