createPackage

open override fun createPackage(qualifiedName: String, completion: () -> Unit, failureHandler: (ErrorCode, Throwable?) -> Unit)

Create a package and its representative Avail module.

Parameters

qualifiedName

The ModuleName of the package.

completion

A function to be run upon the successful creation of the package.

failureHandler

A function that accepts a ErrorCode that describes the failure and a nullable Throwable.