Import function of a single defined package.
Last updated 1 year ago
Was this helpful?
install( importPath, async, parentPackage ) -> /
This function is just a global alias of the function.
This function can return a promise instead of the result of a packet execution.
local promise = import( "packages/glua-encoder.lua", true ) promise:Then( function( result ) print( result ) end, function( errorMessage ) print( "Oh no, package import failed with error: " .. errorMessage ) end )