# Module cloudi_future

- Description
- Data Types
- Function Index
- Function Details

### CloudI Futures

.

Copyright © 2015-2020 Michael Truog

Version: 1.8.1 Dec 3 2021 17:15:32 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### CloudI Futures

## Data Types

### value()

`value() = fun((cloudi:agent()) -> {{ok, cloudi:response_info(), cloudi:response()} | {ok, cloudi:response()} | {error, cloudi:error_reason()}, cloudi:agent()})`

## Function Index

new/3 | #### Create a future. .
new/4 | #### Create a future. .
new/5 | #### Create a future. .
new/6 | #### Create a future. .
new/7 | #### Create a future. .

## Function Details

### new/3

`new(Agent::cloudi:agent(), Name::cloudi:service_name(), Request::cloudi:request()) -> {value(), cloudi:agent()}`

#### Create a future.

### new/4

`new(Agent::cloudi:agent(), Name::cloudi:service_name(), Request::cloudi:request(), Timeout::cloudi:timeout_milliseconds()) -> {value(), cloudi:agent()}`

#### Create a future.

### new/5

`new(Agent::cloudi:agent(), Name::cloudi:service_name(), Request::cloudi:request(), Timeout::cloudi:timeout_milliseconds(), PatternPid::cloudi:pattern_pid()) -> {value(), cloudi:agent()}`

#### Create a future.

### new/6

`new(Agent::cloudi:agent(), Name::cloudi:service_name(), RequestInfo::cloudi:request_info(), Request::cloudi:request(), Timeout::cloudi:timeout_milliseconds(), Priority::cloudi:priority()) -> {value(), cloudi:agent()}`

#### Create a future.

### new/7

`new(Agent::cloudi:agent(), Name::cloudi:service_name(), RequestInfo::cloudi:request_info(), Request::cloudi:request(), Timeout::cloudi:timeout_milliseconds(), Priority::cloudi:priority(), PatternPid::cloudi:pattern_pid() | undefined) -> {value(), cloudi:agent()}`

#### Create a future.

Generated by EDoc