safe_bool

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

package safe_bool -- потокобезопасная булева переменная

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeBool

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

SafeBool -- потокобезопасная булева переменная

func NewSafeBool

func NewSafeBool() *SafeBool

NewSafeBool -- возвращает новую потокобезопасную булеву переменную

func (*SafeBool) Get

func (sf *SafeBool) Get() bool

Get -- возвращает значение

func (*SafeBool) Reset

func (sf *SafeBool) Reset()

Reset -- сбрасывает значение

func (*SafeBool) Set

func (sf *SafeBool) Set()

Set -- устанавливает значение

Jump to

Keyboard shortcuts

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