Skip to contents

approve() says yes, deny() says no (the model is told the person did not allow the call, and why). Give it the approval event a stream's .each received (the call waiting in this session goes on), or a turn that waits: a conversation's turn goes on when nothing else waits for an answer, here, and its answer is returned (resume = FALSE: later, with resume_turn()).

Usage

approve(x, approval = NULL, by = NULL, resume = TRUE)

deny(x, approval = NULL, reason = NULL, by = NULL, resume = TRUE)

Arguments

x

An approval event, or a waiting turn.

approval

Which approval a turn waits for (turn$waiting[[1]], its invocation number); NULL for the only one.

by

Who answers.

resume

Whether the turn goes on now.

reason

Why not.

Value

The turn's answer, when it went on; else nothing.