space_ex v0.5.1 SpaceEx.Procedure
Represents a remote procedure call, for streams and expressions.
You can create a Procedure by passing a regular SpaceEx call into the
create/1
macro.
Link to this section Summary
Functions
Creates a Procedure structure based on an actual procedure call
Link to this section Functions
Creates a Procedure structure based on an actual procedure call.
You can wrap any normal API function call in this, and it will parse that into a format suitable for using in streams, expressions, etc. For example:
require SpaceEx.Procedure
call1 = SpaceEx.Procedure.create(SpaceEx.SpaceCenter.ut(conn))
# You can also use pipelining:
call2 =
SpaceEx.SpaceCenter.Flight.mean_altitude(flight)
|> SpaceEx.Procedure.create()
create(Mod.func(args))
is equivalent to calling the internal function
Mod.rpc_func(args)
.