[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [helpers](../README) / pipeAsync

# Function: pipeAsync()

> **pipeAsync**\<`T`, `R`\>(`value`, `fn`): `Promise`\<`R`\>

Defined in: [packages/core/src/helpers/index.ts:186](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/helpers/index.ts#L186)

Async version of pipe.

## Type Parameters

### T

`T`

### R

`R`

## Parameters

### value

`T`

### fn

(`val`) => `Promise`\<`R`\>

## Returns

`Promise`\<`R`\>

## Example

```ts
const hashed = await pipeAsync(password, (p) => bcrypt.hash(p, 12));
```
