work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public static void initialize(@NonNull Context context, @NonNull Configuration configuration) {
        synchronized (sLock) {
            if (sDelegatedInstance == null) {
                context = context.getApplicationContext();
                if (sDefaultInstance == null) {
                    sDefaultInstance = new WorkManagerImpl(context, configuration);
                }
                sDelegatedInstance = sDefaultInstance;
            }
        }
    }
/**
     * Initializes the singleton instance of {@link WorkManagerImpl}.
     *
     * @param context A {@link Context} object for configuration purposes. Internally, this class
     *                will call {@link Context#getApplicationContext()}, so you may safely pass in
     *                any Context without risking a memory leak.
     * @param configuration The {@link Configuration} for used to set up WorkManager.
     *
     * @hide
     */
Initializes the singleton instance of  WorkManagerImpl.
@param context A  Context object for configuration purposes. Internally, this class
will call  Context#getApplicationContext(), so you may safely pass in
any Context without risking a memory leak.
@param configuration The  Configuration for used to set up WorkManager.

@hide
Initializes the singleton instance of WorkManagerImpl . @param context A Context object for configuration purposes . Internally this class will call Context#getApplicationContext () so you may safely pass in any Context without risking a memory leak . @param configuration The Configuration for used to set up WorkManager . @hide
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public static void initialize(@NonNull Context context, @NonNull Configuration configuration) {
        synchronized (sLock) {
            if (sDelegatedInstance == null) {
                context = context.getApplicationContext();
                if (sDefaultInstance == null) {
                    sDefaultInstance = new WorkManagerImpl(context, configuration);
                }
                sDelegatedInstance = sDefaultInstance;
            }
        }
    }
@ RestrictTo ( RestrictTo . Scope . LIBRARY_GROUP ) public static void initialize ( @ NonNull Context context , @ NonNull Configuration configuration ) { synchronized ( sLock ) { if ( sDelegatedInstance == null ) { context = context . getApplicationContext ( ) ; if ( sDefaultInstance == null ) { sDefaultInstance = new WorkManagerImpl ( context , configuration ) ; } sDelegatedInstance = sDefaultInstance ; } } }
Initializes the singleton instance of {@link WorkManagerImpl}.
Initializes the singleton instance of { @link WorkManagerImpl } .