coreutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package coreutil provides utilities for core interfaces, that can be useful not only for engine, but other core importers too.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Waiter

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

Waiter goroutine unsafe wrapper for efficient waiting schedule.

func NewWaiter

func NewWaiter(sched core.Schedule, ctx context.Context) *Waiter

func (*Waiter) Wait

func (w *Waiter) Wait() (ok bool)

Wait waits for next waiter schedule event. Returns true, if event successfully waited, or false if waiter context is done, or schedule finished.

Jump to

Keyboard shortcuts

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