R/bpstop-methods.R

Defines functions .bpstop_impl .bpstop_nodes

Documented in .bpstop_impl

setMethod("bpstop", "ANY", function(x) invisible(x))

setMethod("bpstop", "missing",
    function(x)
{
    x <- registered()[[1]]
    bpstop(x)
})

##
## .bpstop_impl: common functionality after bpisup() is no longer TRUE
##

.bpstop_nodes <-
    function(x)
{
    manager <- .manager(x)
    .manager_send_all(manager, .DONE())
    TRUE
}

.bpstop_impl <-
    function(x)
{
    bpisup(x) && .bpstop_nodes(x)
    .ClusterManager$drop(x$.uid)
    invisible(x)
}
Bioconductor/BiocParallel documentation built on March 7, 2024, 5:35 a.m.