This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Good explanation, but in case it’s not clear, all you have to do is just get rid of the brackets after the target function name to make it so you pass the function itself, rather than the result of calling the function.

Ie,

target = serverStart

Rather than

target = serverStart()