Xamal.SSH.Runner (xamal v0.3.1)

Copy Markdown View Source

Parallel execution runner with configurable concurrency.

Uses Task.async_stream with complete-all semantics (collects all results, doesn't fail-fast).

Summary

Functions

Run a function on each host in parallel.

Functions

run(hosts, fun, opts \\ [])

Run a function on each host in parallel.

Options:

  • concurrency: max parallel tasks (default: unlimited)
  • wait: seconds to wait between batches (default: nil)
  • timeout: per-task timeout in ms (default: 60_000)

Returns a list of {host, result} tuples.