Function try_sync

  • Tries to run a function and returns :ok(value) if the function completed or :err(error) if the function threw.

    Parameters

    • func: any

    Returns any

Generated using TypeDoc