Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JObject result = null;
- var tokenSource = new CancellationTokenSource();
- var token = tokenSource.Token;
- var scriptTimeout = 2000;
- tokenSource.CancelAfter((int) scriptTimeout);
- result = await _nodeServices.InvokeExportAsync<JObject>(token, "./Node/script", "run");
Add Comment
Please, Sign In to add comment