iowait

package module
v0.0.0-...-782bacb Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2015 License: MIT Imports: 5 Imported by: 2

README

iowait

GoDoc

Block until a given io.Reader contains a given line that matches a given Regex.

Documentation

Overview

Block until a given io.Reader contains a given line that matches a given Regex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForRegexp

func WaitForRegexp(r io.Reader, exp *regexp.Regexp, to time.Duration) error

blocks the routine until a line in the given reader matches the given regex, if this doesn't happen before the timeout expires an error is returned

Types

type TimeoutError

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

error that is returned when WaitForRegexp times out

Jump to

Keyboard shortcuts

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