2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-20 04:42:24 +00:00
Files
process/doc/reference/default_launcher.adoc
Klemens Morgenstern 1dcf21fbde doc typo fixes
2026-01-11 07:32:02 +08:00

23 lines
856 B
Plaintext

== `default_launcher.hpp`
[#default_launcher]
The `default_launcher` is the standard way of creating a process.
[source,cpp]
----
asio::io_context ctx;
process proc(ctx.get_executor(), "test", {});
// equivalent to
process proc = default_launcher()(ctx.get_executor(), "test", {});
----
It has four overloads:
[source,cpp]
----
(ExecutionContext &, filesystem::path, Args && args, Inits && ... inits) -> basic_process<typename ExecutionContext::executor_type>
(Executor &, filesystem::path, Args && args, Inits && ... inits) -> basic_process<Executor>;
(ExecutionContext &, error_code&, filesystem::path, Args && args, Inits && ... inits) -> basic_process<typename ExecutionContext::executor_type>;`
(Executor &, error_code&, filesystem::path, Args && args, Inits && ... inits) -> basic_process<Executor>
----