In this guide, we will discuss Erlang is_alive. This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.
Syntax
is_alive()
Parameters
- None
Return Value
This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.
For example
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p",[is_alive()]).
Output
When we run the above program, we will get the following result.
false
Next Topic : Click Here
Pingback: Erlang - spawn on Node | Adglob Infosystem Pvt Ltd
Pingback: Erlang - Distributed Programming | Adglob Infosystem Pvt Ltd