ioctx

package
v0.192.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextualReadCloser

type ContextualReadCloser struct {
	Ctx    context.Context
	Reader io.ReadCloser
}

ContextualReadCloser is a wrapper around an io.ReadCloser that cancels the read operation when the context is canceled.

func (ContextualReadCloser) Close

func (crc ContextualReadCloser) Close() error

func (ContextualReadCloser) Read

func (crc ContextualReadCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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