docs-v2/content/flux/v0/stdlib/internal/testutil/yield.md

51 lines
1.2 KiB
Markdown

---
title: testutil.yield() function
description: >
`testutil.yield()` is the identity function.
menu:
flux_v0_ref:
name: testutil.yield
parent: internal/testutil
identifier: internal/testutil/yield
weight: 201
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/internal/testutil/testutil.flux#L15-L15
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`testutil.yield()` is the identity function.
##### Function type signature
```js
(<-v: A) => A
```
{{% caption %}}
For more information, see [Function type signatures](/flux/v0/function-type-signatures/).
{{% /caption %}}
## Parameters
### v
Any value.