# isCurrentlyCreatingSingleton method

1. @protected

bool isCurrentlyCreatingSingleton(

1. String name

)
inherited

Check whether the specified singleton pod is currently in creation.

`name`: The name of the pod to check Returns true if the pod is currently being created, false otherwise

Example:

    if (registry.isSingletonCurrentlyInCreation('userService')) {
      print('UserService is being created - possible circular dependency');
    }

## Implementation

    @protected
    bool isCurrentlyCreatingSingleton(String name) => _singletonsCurrentlyInCreation.contains(name);