mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
waiter.Waiter API upgrade breaks nested Actor/Invoker calls #1560
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AnnaShaleva on GitHub (Sep 22, 2025).
Current Behavior
#3959 broke
waiter.Waiterchained calls wrapped into methods likeactor.SendRun: https://github.com/nspcc-dev/neofs-node/pull/3589#discussion_r2362716630.Expected Behavior
Chained calls is a nice feature that simplifies user's code, so it's good to preserve chained calls. At the same time,
waiterneeds an ability to work with externally-provided cancellation context, so removing context argument is not an option.Possible Solution
Removing chained calls is not an option. Removing context is also not an option.
Context may be provided via separate call, something like
waiter.SetContext(ctx).Wait(actor.SendRun()). Another option is to bound context to waiter in constructor.Context
Ref. https://github.com/nspcc-dev/neofs-node/pull/3589#discussion_r2364197434, related to https://github.com/nspcc-dev/neo-go/issues/3026.