public static class Receive implements Intrinsic {
public Obj invoke(Context context, Obj left, Obj right) {
Channel channel = (Channel) left.getValue();
try {
return channel.receive();
} catch (InterruptedException e) {
// TODO(bob): Better error.
throw context.error("Error", "Interrupted");
}
}