deadline

package
v2.0.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package deadline provides deadline timer used to implement net.Conn compatible connection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deadline

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

Deadline signals updatable deadline timer.

func New

func New() *Deadline

New creates new deadline timer.

func (*Deadline) Done

func (d *Deadline) Done() <-chan struct{}

Done receives deadline signal.

func (*Deadline) Set

func (d *Deadline) Set(t time.Time)

Set new deadline. Zero value means no deadline.

Jump to

Keyboard shortcuts

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