provideModuleRootTree

open fun provideModuleRootTree(successHandler: (ResolverReference) -> Unit, failureHandler: (ErrorCode, Throwable?) -> Unit)

Provide the non-null ResolverReference that represents the moduleRoot. There is no guarantee made by this interface as to how this should be run. It can be all executed on the calling thread or it can be executed on a separate thread.

Parameters

successHandler

Accepts the resolved ResolverReference.

failureHandler

A function that accepts an ErrorCode and a nullable Throwable to be called in the event of failure.