by Сергей Рябинкин
Two simple flows that show the logical differences between a subroutine and a fork, particularly with variables.
The benefit of a fork is that its new fiber can run simultaneously with the current fiber. But the tradeoff is that passing variables can be tricky.
With a subroutine, the current fiber waits for the new one to finish, but passing variables is MUCH easier.
Rate and review within the app in the Community section.