Skip to content

Instantly share code, notes, and snippets.

View rafis's full-sized avatar
💭
I may be slow to respond.

rafis

💭
I may be slow to respond.
View GitHub Profile
mtype { LOAD_TASK, TASK_READY, TASK_COMPLETE, HELO_CLIENT, START_CAPABILITY, CAPABILITY_INPUT, CAPABILITY_OUTPUT, CAPABILITY_COMPLETE };
mtype { READY, COMPLETE };
chan taskBus = [128] of { mtype };
active proctype TaskClient() {
taskBus ! LOAD_TASK;
if
:: taskBus ? TASK_READY ->
taskBus ? HELO_CLIENT;
:: taskBus ? HELO_CLIENT ->