Skip to contents

Context manager

Usage

create_context_manager(on_enter, on_exit, args = NULL)

Arguments

on_enter

function to run before entering context

on_exit

function to run after taking actions

args

Optional list of arguments supplied to `on_enter` function.

Value

S3 class ContextManager