Skip to content

Instantly share code, notes, and snippets.

@linkdd
Created September 23, 2022 16:09
Show Gist options
  • Save linkdd/79adde47c40d7dbdb0c212b412389d91 to your computer and use it in GitHub Desktop.
Save linkdd/79adde47c40d7dbdb0c212b412389d91 to your computer and use it in GitHub Desktop.
Basic structure of a Letlang process implementation
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