acall

Far Manager Macro System

acall


... = mf.acall (func, ...)

Parameters:
  func:    function
  ...:     0 or more Lua values

Returns:
  ...:     0 or more Lua values

Description:
  This function calls "asynchronously" the function func, passing it all the following
  arguments.

  mf.acall is a sort of specialization of Plugin.Call for the LuaMacro plugin,
  but unlike Plugin.Call it allows code execution in the context of the caller
  as well as passing and returning any Lua values.

  Like Plugin.Call, mf.acall is "asynchronous": when the function func pops up
  a dialog or a menu on the screen, mf.acall immediately terminates and returns true.

  If the function func pops up no dialogs or menus on the screen, it is a "synchronous"
  operation mode: in this case mf.acall returns all values, returned by the function func.

See also:
Restrictions in the use of some functions