%% %CopyrightBegin%
%%
%% SPDX-License-Identifier: Apache-2.0
%%
%% Copyright Ericsson AB 2021-2025. All Rights Reserved.
%%
%% %CopyrightEnd%

[;1m  spawn_request(NodeOrModule, FunOrFunction, OptionsOrArgs)[0m

[;;4mSince[0m:
  OTP 23.0

  Equivalent to [;;4mspawn_request(Node,erlang,apply,[Fun,[]],Options)[0m
  ]([;;4mspawn_request/5[0m) or [[;;4m[0m
  [;;4mspawn_request(node(),Module,Function,Args,[])[0m depending on the
  arguments.

  That is either:

   • spawn request using the fun [;;4mFun[0m of arity zero as entry
     point

   • spawn request on the local node with no options.

  This function will fail with a [;;4mbadarg[0m exception if:

   • [;;4mNode[0m is not an atom.

   • [;;4mFun[0m is not a fun of arity zero.

   • [;;4mOptions[0m is not a proper list of terms.
