Add is_running()
method
#910
Labels
difficulty: intermediate
Enterprising community members could help
effort: medium
< 3 days of work
help wanted
Solution is well-specified enough that any community member could fix
Milestone
From @nbenn in https://community.rstudio.com/t/determine-whether-code-is-being-run-as-part-of-a-plumber-api/169128
I'd like for it to take
pr
as a value and have it default to something likeget_current_router()
(or something) that possibly returns the currently running server and checks for a flag.Could also have a method to return currently running plumber routers (if non-blocking) is implemented. And then the length of the routers could be checked for > 0.
The text was updated successfully, but these errors were encountered: