This commit is contained in:
RPRX 2020-12-04 09:36:16 +08:00
parent ed8d6d743c
commit 16544c18ab
627 changed files with 3247 additions and 2635 deletions

View file

@ -1,6 +1,6 @@
package task
import "github.com/xtls/xray-core/v1/common"
import "github.com/xtls/xray-core/common"
// Close returns a func() that closes v.
func Close(v interface{}) func() error {

View file

@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/xtls/xray-core/v1/common"
. "github.com/xtls/xray-core/v1/common/task"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/task"
)
func TestPeriodicTaskStop(t *testing.T) {

View file

@ -3,7 +3,7 @@ package task
import (
"context"
"github.com/xtls/xray-core/v1/common/signal/semaphore"
"github.com/xtls/xray-core/common/signal/semaphore"
)
// OnSuccess executes g() after f() returns nil.

View file

@ -9,8 +9,8 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/xtls/xray-core/v1/common"
. "github.com/xtls/xray-core/v1/common/task"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/task"
)
func TestExecuteParallel(t *testing.T) {