Created
          September 23, 2022 16:09 
        
      - 
      
- 
        Save linkdd/79adde47c40d7dbdb0c212b412389d91 to your computer and use it in GitHub Desktop. 
    Basic structure of a Letlang process implementation
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tokio::spawn(async move { | |
| let process_handle = tokio::spawn(async move { | |
| // run process's function | |
| }); | |
| let res = process_handle.await; | |
| // notify the node of the process termination | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment