Skip to content

The worker is not freed when an unresolved future loses its reference. #20

@randy3k

Description

@randy3k

The "worker" is not freed when an unresolved future loses its reference.

future::plan(future.callr::callr, workers = 10)

future::nbrOfFreeWorkers()
#> [1] 10

x <- future.callr::callr(1)
x <- NULL

future::nbrOfFreeWorkers()
#> [1] 9
  1. If the future is finished, we should remove the future from the registry
  2. If the future is still running, there should be a mechanism to stop the R subprocess

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions