Bun

interface

ffi.Library

interface Library<Fns extends Symbols>

  • close(): void;

    dlclose the library, unloading the symbols and freeing allocated memory.

    Once called, the library is no longer usable.

    Calling a function from a library that has been closed is undefined behavior.