Module ktn_task

Data Types

task()

task(T) = fun(() -> T)

Function Index

wait_for/2
wait_for/4
wait_for_success/1
wait_for_success/3

Function Details

wait_for/2

wait_for(Task::task(T1), T2) -> {error, {timeout, {badmatch, T1}}} | T2

wait_for/4

wait_for(Task::task(T1), T2, SleepTime::pos_integer(), Retries::pos_integer()) -> {error, {timeout, {badmatch, T1}}} | T2

wait_for_success/1

wait_for_success(Task::task(T)) -> {error, {timeout, term()}} | T

wait_for_success/3

wait_for_success(Task::task(T), SleepTime::pos_integer(), Retries::pos_integer()) -> {error, {timeout, term()}} | T


Generated by EDoc, Mar 17 2017, 12:18:09.