channel

package
v0.0.0-...-9d91cd3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test1

func Test1()

Test1 channel的基本实现

func Test2

func Test2()

Test2 测试使用 runtime 包中的 GOMAXPROCS

func Test3

func Test3()

Test3 测试从 通道获取下一个值

func Test4

func Test4()

Test4 测试无缓存通道是否会阻塞后面的代码执行

func Test5

func Test5()

Test5 测试带缓存的 channel

func Test6

func Test6()

Test6 信号量模式

func Test7

func Test7()

Test7 测试 sync 包的信号量实现同步

Types

type Empty

type Empty interface{}

Empty test7 的测试用例

Jump to

Keyboard shortcuts

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