Predicate<bool> once() { var first = true; return (Principal canisterId, RequestId requestId, String status) async { if (first) { first = false; return true; } return false; }; }