Function deffered

Wrap up a container into a defferring container.

auto auto deffered(T) (
  auto ref T container,
  string defferedExecutionerIdentity
);

auto auto deffered(T) (
  auto ref T container
);

Wraps up container into a defferring container which executes defferred actions when a component from it is requested from exterior and not interior of container. Therefore with help of it, is possible to solve circular dependency errors by defferring setting a dependency at a later time when dependents are fully constructed.

Parameters

NameDescription
container container to wrap up in defferred container
defferedExecutionerIdentity identity of container for defferred actions that will be used by contained factories if needed.

Returns

DefferedContainer!T