// SetNonShared will set the function for the given service. It is not shared, meaning you will get a new instance on each call to get
SetNonShared will set the function for the given service. It is not shared, meaning you will get a new instance on each call to get
// SetNonShared will set the function for the given service . It is not shared meaning you will get a new instance on each call to get
func (c *Type) SetNonShared(key string, f ServiceFunc) {
	c.mu.Lock()
	defer c.mu.Unlock()
	c.definitions[key] = &ServiceDefinition{
		Func: f,
		Type: ServiceTypeNonShared,
	}
	delete(c.resolved, key)
}
func ( c * Type ) SetNonShared ( key string , f ServiceFunc ) { c . mu . Lock ( ) defer c . mu . Unlock ( ) c . definitions [ key ] = & ServiceDefinition { Func : f , Type : ServiceTypeNonShared , } delete ( c . resolved , key ) }
SetNonShared will set the function for the given service.
SetNonShared will set the function for the given service .
// Delete existing resolved object if any