BiocParallel (version 1.0.3)

bpschedule: Schedule back-end Params

Description

Use functions on this page to influence scheduling of parallel processing.

Usage

bpschedule(x, ...)

Arguments

x

An instance of a BiocParallelParam class, e.g., MulticoreParam, SnowParam, DoparParam.

x can be missing, in which case the default back-end (see register) is used.

...
Additional arguments, perhaps used by methods.

Value

bpschedule returns a scalar logical.

Details

bpschedule returns a logical(1) indicating whether the parallel evaluation should occur at this point.

See Also

BiocParallelParam for possible values of x.

Examples

Run this code
bpschedule(SnowParam()) 		# TRUE
bpschedule(MulticoreParam(2))		# FALSE on windows

p <- MulticoreParam(recursive=FALSE)
bpschedule(p)                           # TRUE
bplapply(1:2, function(i, p) {
    bpschedule(p)                       # FALSE
}, p = p, BPPARAM=p)

Run the code above in your browser using DataCamp Workspace