🔀Subroutine Vs Fork Example🔀

by Сергей Рябинкин

Version 1 (March 5, 2017)

Download (23 downloads)

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.