R: Session Pool with Many R Sessions

SessionPool {languageserver} | R Documentation

## Session Pool with Many R Sessions

### Description

Session Pool with Many R Sessions

### Examples

    ## Not run:
    # create 3 cached r sessions in the pool
    pool_size <- 3
    pool_name <- "common"
    pool <- SessionPool$new(pool_size, pool_name)

    # check idle_size before acquiring session
    n <- pool$get_idle_size()

    # if there are idle sessions, acquire session
    session <- pool$acquire()

    # check session is not null and then use session
    is.null(session)

    # use session
    # please read R6 Class `Session` documentation

    ## End(Not run)

[Package languageserver version 0.3.10 Index]