Documentation ¶
Index ¶
- Variables
- type AsyncResult
- type Loop
- func (l *Loop) Async(w Worker) error
- func (l *Loop) Close() (e error)
- func (l *Loop) Complete() error
- func (l *Loop) Context() context.Context
- func (l *Loop) Done() <-chan struct{}
- func (l *Loop) GetScheduler() Scheduler
- func (l *Loop) Go(w Worker) error
- func (l *Loop) Result(result AsyncResult) bool
- func (l *Loop) Serve() (e error)
- func (l *Loop) SetScheduler(scheduler Scheduler) Scheduler
- func (l *Loop) TryResult(result AsyncResult) (ok bool)
- type Scheduler
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLoopClosed = errors.New(`loop already closed`)
Functions ¶
This section is empty.
Types ¶
type AsyncResult ¶
type Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
func (*Loop) Async ¶
Create an asynchronous event, can only be called in the goroutine running by js
func (*Loop) Complete ¶
Complete an asynchronous event, can only be called in the goroutine running by js
func (*Loop) GetScheduler ¶
func (*Loop) Result ¶
func (l *Loop) Result(result AsyncResult) bool
Send the result of an asynchronous event to js
func (*Loop) SetScheduler ¶
func (*Loop) TryResult ¶
func (l *Loop) TryResult(result AsyncResult) (ok bool)
Click to show internal directories.
Click to hide internal directories.