Parameters
The pipeline boundary. Unlike work-node constructors,
root has no name argument.Returns
The exportedroot function also has root.started and root.completed ports targeting the default ID "root". When overriding the ID, use the returned node’s ports.
Throws
Throws a local error whensettings is not an object. Pass root({ started, completed }), without a name argument.