Skip to content

Commit

Permalink
refactor(internal/coroutine): remove unused ErrAbortThread
Browse files Browse the repository at this point in the history
This follows up on goplus#495.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
  • Loading branch information
aofei committed Feb 14, 2025
1 parent c95a480 commit ec03c69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/coroutine/coro.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ import (
"unsafe"
)

var (
// ErrCannotYieldANonrunningThread represents an "can not yield a non-running thread" error.
ErrCannotYieldANonrunningThread = errors.New("can not yield a non-running thread")
ErrAbortThread = errors.New("abort thread")
)
// ErrCannotYieldANonrunningThread represents an "can not yield a non-running thread" error.
var ErrCannotYieldANonrunningThread = errors.New("can not yield a non-running thread")

// -------------------------------------------------------------------------------------

Expand Down

0 comments on commit ec03c69

Please sign in to comment.