mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
13 lines
150 B
Go
13 lines
150 B
Go
package common
|
|
|
|
import "context"
|
|
|
|
func Opened(_ctx context.Context) bool {
|
|
select {
|
|
case <-_ctx.Done():
|
|
return false
|
|
default:
|
|
return true
|
|
}
|
|
}
|