mirror of https://github.com/stashapp/stash.git
23 lines
291 B
Go
23 lines
291 B
Go
![]() |
package utils
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type ValueOnlyContext struct {
|
||
|
context.Context
|
||
|
}
|
||
|
|
||
|
func (ValueOnlyContext) Deadline() (deadline time.Time, ok bool) {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
func (ValueOnlyContext) Done() <-chan struct{} {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (ValueOnlyContext) Err() error {
|
||
|
return nil
|
||
|
}
|