once function

Predicate<bool> once()

Implementation

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