deadline

package
v0.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClose

func WithClose(f func()) func(*opts)

func WithReadClose

func WithReadClose(f func()) func(*opts)

func WithWriteClose

func WithWriteClose(f func()) func(*opts)

Types

type Deadline

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

func New

func New(os ...func(*opts)) *Deadline

func (*Deadline) Close

func (x *Deadline) Close() error

func (*Deadline) Context

func (x *Deadline) Context() context.Context

func (*Deadline) SetDeadline

func (x *Deadline) SetDeadline(t time.Time)

type PipeDeadline

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

func NewPipe

func NewPipe(os ...func(*opts)) *PipeDeadline

func (*PipeDeadline) Close

func (x *PipeDeadline) Close() error

func (*PipeDeadline) ReadContext

func (x *PipeDeadline) ReadContext() context.Context

func (*PipeDeadline) SetDeadline

func (x *PipeDeadline) SetDeadline(t time.Time)

func (*PipeDeadline) SetReadDeadline

func (x *PipeDeadline) SetReadDeadline(t time.Time)

func (*PipeDeadline) SetWriteDeadline

func (x *PipeDeadline) SetWriteDeadline(t time.Time)

func (*PipeDeadline) WriteContext

func (x *PipeDeadline) WriteContext() context.Context

Jump to

Keyboard shortcuts

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