internal/thread: Refactoring

This commit is contained in:
Hajime Hoshi 2021-06-15 00:43:48 +09:00
parent 49c3c30c79
commit 43c964a3b8

View File

@ -73,7 +73,7 @@ func (t *OSThread) Call(f func() error) error {
type NoopThread struct{}
// NewNoopThread creates a new thread that does no threading.
func NewNoopThread() Thread {
func NewNoopThread() *NoopThread {
return &NoopThread{}
}