# LibTmux::Async::Scope#map

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux-async/lib/libtmux/async/scope.rb#L104
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-async-scope-map/

```
def map: [Input, Output] (
  ::Enumerable[Input],
  ?concurrency: ::Integer,
  ?max_items: ::Integer,
  ?max_bytes: ::Integer,
  ?result_bytes: ^(Output) -> ::Integer
) {
  (Input) -> Output
} -> ::Array[Output]
```

Behavior: Async map.

Behavior contract: Async map.

## Raises

- `ArgumentError`
