Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BreakLoop = errors.New("break loop")
BreakLoop represents an termination of the loop.
Functions ¶
This section is empty.
Types ¶
type NoopThread ¶ added in v2.1.0
type NoopThread struct{}
NoopThread is used to disable threading.
func (*NoopThread) Call ¶ added in v2.1.0
func (t *NoopThread) Call(f func() error) error
Call executes the func immediately
type OSThread ¶ added in v2.1.0
type OSThread struct {
// contains filtered or unexported fields
}
OSThread represents an OS thread.
func NewOSThread ¶ added in v2.1.0
func NewOSThread() *OSThread
NewOSThread creates a new thread.
It is assumed that the OS thread is fixed by runtime.LockOSThread when NewOSThread is called.
Click to show internal directories.
Click to hide internal directories.