swift-service-lifecycle icon indicating copy to clipboard operation
swift-service-lifecycle copied to clipboard

RFC: validate that only a single instance of ServiceLifecycle is created per process

Open tomerd opened this issue 4 years ago • 1 comments

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 avatar Mar 17 '21 20:03 tomerd

@tomerd Wanna go forward with this PR?

fabianfett avatar Mar 29 '21 07:03 fabianfett

Going to close this now since our new APIs don't have that restriction.

FranzBusch avatar May 30 '23 10:05 FranzBusch