Skip to content

Commit e9e1f63

Browse files
authored
refactor(internal/coroutine): remove unused ErrAbortThread (#496)
This follows up on #495. Signed-off-by: Aofei Sheng <[email protected]>
1 parent c95a480 commit e9e1f63

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

internal/coroutine/coro.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ import (
99
"unsafe"
1010
)
1111

12-
var (
13-
// ErrCannotYieldANonrunningThread represents an "can not yield a non-running thread" error.
14-
ErrCannotYieldANonrunningThread = errors.New("can not yield a non-running thread")
15-
ErrAbortThread = errors.New("abort thread")
16-
)
12+
// ErrCannotYieldANonrunningThread represents an "can not yield a non-running thread" error.
13+
var ErrCannotYieldANonrunningThread = errors.New("can not yield a non-running thread")
1714

1815
// -------------------------------------------------------------------------------------
1916

0 commit comments

Comments
 (0)