Skip to content

Check if node is running #164

Description

@jbesraa

It would be useful to expose a function to check if the node is running (ie node.start() ) was invoked.

A possible solution:

/// Check if node runtime is up
pub fn is_node_running(&self) -> bool {
    if self.runtime.read().unwrap().is_some() {
          true
     }
    else { false }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions