braidsync

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Switch

type Switch struct {
	// contains filtered or unexported fields
}

Switch 用于模拟开关行为的事件结构

func NewSwitch

func NewSwitch() *Switch

NewSwitch 返回一个新的开关事件

func (*Switch) Done

func (s *Switch) Done() <-chan struct{}

Done 事件触发

func (*Switch) HasOpend

func (s *Switch) HasOpend() bool

HasOpend 是否以开启

func (*Switch) Open

func (s *Switch) Open() bool

Open 开启

type WaitGroupWrapper

type WaitGroupWrapper struct {
	sync.WaitGroup
}

func (*WaitGroupWrapper) Wrap

func (w *WaitGroupWrapper) Wrap(cb func())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL