Skip to main content

CAPTURE_OFF_MAIN_THREAD

Constant CAPTURE_OFF_MAIN_THREAD 

Source
const CAPTURE_OFF_MAIN_THREAD: &str = "deferred_condition::capture() was called off R's main \
     thread.\n\
     \n\
     Conditions deferred on another thread go to R's main thread, so there is \
     nothing here to capture. Call capture() on the main thread, around the \
     parallel section (Rayon, std::thread) that queues them.";
Expand description

Why capture refuses to run off R’s main thread.