mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-30 22:36:02 +02:00
13 lines
150 B
Go
13 lines
150 B
Go
package utils
|
|
|
|
import "context"
|
|
|
|
func IsCtxDone(ctx context.Context) bool {
|
|
select {
|
|
case <-ctx.Done():
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|