question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suspendable Subcommand

See original GitHub issue

Hi! Is the way to write async code in Subcommand, make fun execute suspendable?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
LepilkinaElenacommented, Jun 29, 2020

Hello! Now fun execute isn’t suspendable, only inside you can launch coroutines. But what do you exactly try to implement? I can’t fins an example of situation when execute function itself should be suspendable. It could be useful if several subcommands could run in parallel. But only one subcommand of the same level can be used in command line (subcommands of subcommand is another level).

0reactions
anti-socialcommented, Nov 25, 2020

What is the reason why you can’t run coroutine inside inside exacute and just call parse without runBlocking?

So I should pass a scope for a coroutine. It seems strange for me that parser needs a coroutine scope.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attention processing for IPCS subcommands and CLISTs - IBM
For subcommands and CLISTs running in the IPCS dialog, IPCS displays the following message: Processing suspended--Enter a null line, TIME, END, or ABEND....
Read more >
Subcommands for the asadmin Utility - Oracle Help Center
Resumes all the suspended in-flight transactions. Invoke this subcommand on an already frozen transaction. Supported in remote mode only. For procedural ...
Read more >
insert_job_type Subcommand -- Add a Job Type ... - TechDocs
You can use the insert_job_type subcommand to add user-defined job types to the database. This is useful when you want to run multiple...
Read more >
picocli - a mighty tiny command line interface
Synopsis Subcommand Label; 14.11. ... with a custom IParameterConsumer is matched on the command line, picocli's internal parser is temporarily suspended, ...
Read more >
GEO Accession viewer - NCBI
The cell pellet was re-suspended in 50μL Tn5 digestion mix by using TruePrepTMDNA ... Picard version 2.18.7 subcommand MarkDuplicates was used to remove ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found