async-package {async}R Documentation

The async package.

Description

The async package allows you to write sequential-looking code that can pause, return control to R, then pick up where it left off. Async constructs include generators and async/await blocks.

Details

A generator runs until it yields a value and then stops, returning control to R until another value is requested. An async block can pause and return control to R until some data is available, then resume. Generators implement the iterator interface, while async blocks implement the promise interface.

Author(s)

Peter Meilstrup


[Package async version 0.2.1 Index]