Documentation
¶
Index ¶
- type BlockingQueue
- type BurstWaitGroup
- type CarrierFuture
- type CompletableFuture
- type DefaultFuture
- func (f *DefaultFuture) AddListener(listener FutureListener) Future
- func (f *DefaultFuture) Await() Future
- func (f *DefaultFuture) AwaitTimeout(timeout time.Duration) Future
- func (f *DefaultFuture) Cancel()
- func (f *DefaultFuture) Completable() CompletableFuture
- func (f *DefaultFuture) Complete(obj interface{})
- func (f *DefaultFuture) Ctx() context.Context
- func (f *DefaultFuture) Done() <-chan struct{}
- func (f *DefaultFuture) Error() error
- func (f *DefaultFuture) Fail(err error)
- func (f *DefaultFuture) Get() interface{}
- func (f *DefaultFuture) GetTimeout(timeout time.Duration) interface{}
- func (f *DefaultFuture) Immutable() ImmutableFuture
- func (f *DefaultFuture) IsCancelled() bool
- func (f *DefaultFuture) IsDone() bool
- func (f *DefaultFuture) IsError() bool
- func (f *DefaultFuture) IsSuccess() bool
- func (f *DefaultFuture) Payload() interface{}
- type Future
- type FutureListener
- type ImmutableFuture
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingQueue ¶
type BlockingQueue struct {
Queue
// contains filtered or unexported fields
}
func (*BlockingQueue) Pop ¶
func (q *BlockingQueue) Pop() interface{}
func (*BlockingQueue) Push ¶
func (q *BlockingQueue) Push(obj interface{})
func (*BlockingQueue) Reset ¶
func (q *BlockingQueue) Reset() *BlockingQueue
type BurstWaitGroup ¶
type BurstWaitGroup struct {
// contains filtered or unexported fields
}
func (*BurstWaitGroup) Add ¶
func (w *BurstWaitGroup) Add(delta int)
func (*BurstWaitGroup) Burst ¶
func (w *BurstWaitGroup) Burst()
func (*BurstWaitGroup) Done ¶
func (w *BurstWaitGroup) Done()
func (*BurstWaitGroup) Remain ¶
func (w *BurstWaitGroup) Remain() int
func (*BurstWaitGroup) Wait ¶
func (w *BurstWaitGroup) Wait()
type CarrierFuture ¶
type CarrierFuture interface {
Payload() interface{}
}
type CompletableFuture ¶
type CompletableFuture interface {
Complete(obj interface{})
Cancel()
Fail(err error)
// contains filtered or unexported methods
}
type DefaultFuture ¶
type DefaultFuture struct {
// contains filtered or unexported fields
}
func (*DefaultFuture) AddListener ¶
func (f *DefaultFuture) AddListener(listener FutureListener) Future
func (*DefaultFuture) Await ¶
func (f *DefaultFuture) Await() Future
func (*DefaultFuture) AwaitTimeout ¶ added in v1.0.11
func (f *DefaultFuture) AwaitTimeout(timeout time.Duration) Future
func (*DefaultFuture) Cancel ¶
func (f *DefaultFuture) Cancel()
func (*DefaultFuture) Completable ¶ added in v1.0.3
func (f *DefaultFuture) Completable() CompletableFuture
func (*DefaultFuture) Complete ¶
func (f *DefaultFuture) Complete(obj interface{})
func (*DefaultFuture) Ctx ¶
func (f *DefaultFuture) Ctx() context.Context
func (*DefaultFuture) Done ¶ added in v1.0.4
func (f *DefaultFuture) Done() <-chan struct{}
func (*DefaultFuture) Error ¶
func (f *DefaultFuture) Error() error
func (*DefaultFuture) Fail ¶
func (f *DefaultFuture) Fail(err error)
func (*DefaultFuture) Get ¶
func (f *DefaultFuture) Get() interface{}
func (*DefaultFuture) GetTimeout ¶ added in v1.0.11
func (f *DefaultFuture) GetTimeout(timeout time.Duration) interface{}
func (*DefaultFuture) Immutable ¶ added in v1.0.12
func (f *DefaultFuture) Immutable() ImmutableFuture
func (*DefaultFuture) IsCancelled ¶
func (f *DefaultFuture) IsCancelled() bool
func (*DefaultFuture) IsDone ¶
func (f *DefaultFuture) IsDone() bool
func (*DefaultFuture) IsError ¶
func (f *DefaultFuture) IsError() bool
func (*DefaultFuture) IsSuccess ¶
func (f *DefaultFuture) IsSuccess() bool
func (*DefaultFuture) Payload ¶
func (f *DefaultFuture) Payload() interface{}
type Future ¶
type Future interface {
Get() interface{}
GetTimeout(timeout time.Duration) interface{}
Done() <-chan struct{}
Await() Future
AwaitTimeout(timeout time.Duration) Future
IsDone() bool
IsSuccess() bool
IsCancelled() bool
IsError() bool
Error() error
Ctx() context.Context
AddListener(listener FutureListener) Future
Completable() CompletableFuture
Immutable() ImmutableFuture
}
func NewCancelledFuture ¶
func NewCancelledFuture() Future
func NewCarrierFuture ¶
func NewCarrierFuture(obj interface{}) Future
func NewFailedFuture ¶
func NewSucceededFuture ¶
func NewSucceededFuture(obj interface{}) Future
type FutureListener ¶
func NewFutureListener ¶
func NewFutureListener(f func(f Future)) FutureListener
type ImmutableFuture ¶ added in v1.0.12
type ImmutableFuture interface {
Get() interface{}
GetTimeout(timeout time.Duration) interface{}
Done() <-chan struct{}
Await() Future
AwaitTimeout(timeout time.Duration) Future
IsDone() bool
IsSuccess() bool
IsCancelled() bool
IsError() bool
Error() error
Ctx() context.Context
AddListener(listener FutureListener) Future
}
Click to show internal directories.
Click to hide internal directories.