NAME
App::teai::Round - consilium rounds: briefs out, replies back
DESCRIPTION
One round's record in teai_rounds under P.T ({thread, project, lead, created, brief: {bytes, sha1}, members: {NAME: {session, seqs}}}), written by compare-and-set (3 tries). Used by "round start" in App::teai, "round collect" in App::teai and App::teai::Dash::Rounds. Every sub calls back on the loop and never runs one. Errors are App::teai::Err objects: code 1 missing round, 2 refusal, 3 hub or malformed record, 4 busy inbox.
key($project, $thread)-
P.T. get($bus, $project, $thread, $cb)-
{record, revision}, or undef without such a round. list($bus, $project, $cb)-
The records of
$project(every project when undef), sorted bycreated, then thread. status($bus, $project, $thread, $cb)-
{record, members, replies}: per member{name, session, briefs, state, reply}, newest reply of its session to one of its brief seqs.stateisreplied,running(anexecpresence entry),gone(no inbox),taken(ack floor past the newest brief), elsesent. Code 1no round T in project Pwithout one. Returns a handle; seecollect. collect($bus, $project, $thread, %o, $cb)-
{record, replies, missing}: the newest reply per member name and the names without one. Options:until(aBus::nowdeadline to follow new mail);ack(the lead's session: counted replies, superseded ones included, are acked in its inbox, the rest handed back; a lead inbox read elsewhere fails with code 4). Returns a handle whosecancelstops it; the callback is then not called. start($bus, %a, $cb)-
project,thread,lead(sending session),body,members([[NAME, SESSION], ...]),addandrole. Onemsgper member on the thread, in name order. Withoutaddthe round must not exist; withaddit must, led bylead, and the body is the round's brief re-read from the stream. Calls back with{sent, failed, warnings}: per member{name, session, seq}or{name, session, error}. A removed member fails the call (code 2); a member without an inbox warns. Code 3round T not recorded: REASON(withresult) when the record cannot be written after a brief was sent. resend($bus, %a, $cb)-
project,thread,lead,namesandrole: the round's brief again to the named members. Code 2no member N in round Tfor an unknown name.
AUTHOR
vividsnow
LICENSE
Same terms as Perl itself.