Function mz_adapter::coord::serve
source ยท pub fn serve(
_: Config,
) -> BoxFuture<'static, Result<(Handle, Client), AdapterError>>
Expand description
Serves the coordinator based on the provided configuration.
For a high-level description of the coordinator, see the crate documentation.
Returns a handle to the coordinator and a client to communicate with the coordinator.
BOXED FUTURE: As of Nov 2023 the returned Future from this function was 42KB. This would get stored on the stack which is bad for runtime performance, and blow up our stack usage. Because of that we purposefully move this Future onto the heap (i.e. Box it).