how to wait a spinoff flow to be completed before the parent case can be resolved?

how to wait a spinoff flow to be completed before the parent case can be resolved?

My scenario is as below:

Case type A —> create spinoff flow B in some conditions —> then A and B running independently until A is going to be resolved. A need wait B till B is completed before A is resolved.

Thanks.

@MaxonL16591286 On the last step of flow A you can check if flowb is present in pxflows if yes then you can route flow A to a workbasket and on last step of B you can do a resume flow of flowA or raise a ticket,