-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
👾 BugSomething isn't workingSomething isn't working
Description
💬 Telego version
👾 Issue description
In telego/examples/graceful_shutdown_long_polling/main.go
file, there is an example of graceful shutdown.
In goroutine, that handles stop signal, there is a break
statement inside select->for. But this break
is referred to inner statement select
, not for
, as expected:
for len(updates) > 0 {
select {
case <-stopCtx.Done():
break
case <-time.After(time.Microsecond * 100):
// Continue
}
}
⚡️ Expected behavior
No response
🧐 Code example
Metadata
Metadata
Assignees
Labels
👾 BugSomething isn't workingSomething isn't working