Skip to content

ImportHandler

A registered runtime import handler.

Methods

unregister()

Removes this handler from the runtime import handler registry.

Calling this more than once has no effect.

Example

let handle = import_handler do |name|
  throw std.ImportError(name)
handle.unregister()
handle.unregister()