swift-service-lifecycle
swift-service-lifecycle copied to clipboard
RFC: validate that only a single instance of ServiceLifecycle is created per process
motivation: having multiple instance of ServiceLifecycle generally points to a mistake, which we can help validate
changes: add check in init to validate single instance
alternatively, we may be less rigid, we can move this check to start so multiple instance may be created, but only one started - I think I prefer this option
@tomerd Wanna go forward with this PR?
Going to close this now since our new APIs don't have that restriction.