Follow

Today, I learned about Supervisors in . There is this concept of Spec which sounds similar to an interface to me. So, functions in Supervisor module expect a child_spec, that is one of two possibilities. If your module implements that, that Supervisor will agree to supervise the Application. The supervisors are cool, it automatically restarts the Application if it crashes based on the options provided. Its kinda like Systemd in that aspect.

· · Web · 1 · 0 · 0

I'm still a bit hazy about the whole Spec deal. I think i'll need to read more about it before I'm comfortable with it.

BTW @ is used to define Module attributes which is kinda like constants. So, when you come across @name "Ankit", that means @name constant is mapped to the String "Ankit".

Sign in to participate in the conversation
Args

Args is an open microblogging platform for my family and close friends to interact with the Fediverse.