View source: R/LLM_parallel_utils.R
reset_llm_parallel | R Documentation |
Resets the future plan to sequential processing.
reset_llm_parallel(verbose = FALSE)
verbose |
Logical. If TRUE, prints reset information. |
Invisibly returns the future plan that was in place before resetting to sequential (often the default sequential plan).
## Not run:
# Setup parallel processing
old_plan <- setup_llm_parallel(workers = 2)
# Do some parallel work...
# Reset to sequential
reset_llm_parallel(verbose = TRUE)
# Optionally restore the specific old_plan if it was non-sequential
# future::plan(old_plan)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.