operator/src/main/java/oracle/kubernetes/operator/work/Fiber.java
@Override
  public Fiber createChildFiber() {
    synchronized (this) {
      if (children == null) {
        children = new ArrayList<>();
      }
      Fiber child = owner.createChildFiber(this);

      children.add(child);
      if (status.get() == NOT_COMPLETE) {
        addBreadCrumb(child);
      } else {
        // Race condition where child is created after parent is cancelled or done
        child.status.set(CANCELLED);
      }

      return child;
    }
  }
/**
   * Creates a child Fiber. If this Fiber is cancelled, so will all of the children.
   *
   * @return Child fiber
   */
Creates a child Fiber. If this Fiber is cancelled, so will all of the children.
@return Child fiber
Creates a child Fiber . If this Fiber is cancelled so will all of the children . @return Child fiber
@Override
  public Fiber createChildFiber() {
    synchronized (this) {
      if (children == null) {
        children = new ArrayList<>();
      }
      Fiber child = owner.createChildFiber(this);
      children.add(child);
      if (status.get() == NOT_COMPLETE) {
        addBreadCrumb(child);
      } else {
        child.status.set(CANCELLED);
      }
      return child;
    }
  }
@ Override public Fiber createChildFiber ( ) { synchronized ( this ) { if ( children == null ) { children = new ArrayList < > ( ) ; } Fiber child = owner . createChildFiber ( this ) ; children . add ( child ) ; if ( status . get ( ) == NOT_COMPLETE ) { addBreadCrumb ( child ) ; } else { child . status . set ( CANCELLED ) ; } return child ; } }
Creates a child Fiber.
Creates a child Fiber .
// Race condition where child is created after parent is cancelled or done