chapter2_channel

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func Run1

func Run1() (x1, x2 int)

* <-tTicket.C * 时钟打点channel,控制处理频率

func Run2

func Run2() (x1, x2 string)

* time.Tick(a) 创建一个通道,每隔a时间,往通道中写入值。 * time.After(a) 创建一个通道,在a时间后,往通道中写入值。

func Run3

func Run3() (r string)

* 超时处理方案1

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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