Documentation
¶
Index ¶
- func LockGuard(l sync.Locker, chunk func())
- func RLockGuard(l RLocker, chunk func())
- type Closer
- type GoPool
- type GoPoolOption
- type GoPoolStatus
- type RLocker
- type SyncValue
- func (s SyncValue[T]) Close() (e error)
- func (s SyncValue[T]) Recv() <-chan T
- func (s SyncValue[T]) Send() chan<- T
- func (s SyncValue[T]) TimedRecv(dur time.Duration) (T, bool)
- func (s SyncValue[T]) TimedSend(v T, dur time.Duration) bool
- func (s SyncValue[T]) TryRecv() (T, bool)
- func (s SyncValue[T]) TrySend(v T) bool
- func (s SyncValue[T]) WaitRecv() T
- func (s SyncValue[T]) WaitSend(v T)
- type Task
- type WaitPool
- type Waiter
- func (w *Waiter) Close() (e error)
- func (w *Waiter) Recv() <-chan struct{}
- func (w *Waiter) Send() chan<- struct{}
- func (w *Waiter) TimedRecv(dur time.Duration) bool
- func (w *Waiter) TimedSend(dur time.Duration) bool
- func (w *Waiter) TryRecv() bool
- func (w *Waiter) TrySend() bool
- func (w *Waiter) WaitRecv()
- func (w *Waiter) WaitSend()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RLockGuard ¶
func RLockGuard(l RLocker, chunk func())
Types ¶
type GoPool ¶ added in v0.1.6
type GoPool struct {
// contains filtered or unexported fields
}
func NewGoPool ¶ added in v0.1.6
func NewGoPool(opts ...GoPoolOption) *GoPool
type GoPoolOption ¶ added in v0.1.6
type GoPoolOption func(*GoPool)
type GoPoolStatus ¶ added in v0.1.6
type GoPoolStatus = int32
type SyncValue ¶ added in v0.2.1
type SyncValue[T any] chan T
数据同步
func NewSyncValue ¶ added in v0.2.1
type WaitPool ¶ added in v0.2.0
type WaitPool struct {
// contains filtered or unexported fields
}
func NewWaitPool ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.