consumer

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopThenableConsumer = ThenableConsumer(func(value interface{}) {})

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Accept(value interface{})
}

Consumer represents an operation that accepts a single input argument and returns no result. Unlike most other functional interfaces, {@code Consumer} is expected to operate via side-effects.

type EmptyConsumer

type EmptyConsumer interface {
	Run()
}

type ThenableConsumer

type ThenableConsumer func(value interface{})

func (ThenableConsumer) Accept

func (c ThenableConsumer) Accept(value interface{})

func (ThenableConsumer) AndThen

func (c ThenableConsumer) AndThen(consumer Consumer) ThenableConsumer

Jump to

Keyboard shortcuts

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