txt: ## keep.md
  keep
  
  Combined from primary sources listed below.
  
  # [In Promise](#___top "go to top of document")[§](#(Promise)_method_keep "direct link")
  
  See primary documentation
  [in context](/type/Promise#method_keep)
  for **method keep**.
  
  ```raku
  multi method keep(Promise:D: \result = True)
  ```
  
  Keeps a promise, optionally setting the result. If no result is passed, the result will be `True`.
  
  Throws an exception of type [`X::Promise::Vowed`](/type/X/Promise/Vowed) if a vow has already been taken. See method `vow` for more information.
  
  ```raku
  my $p = Promise.new;
  
  if Bool.pick {
      $p.keep;
  }
  else {
       $p.break;
  }
  ```
  