Description Usage Arguments Details Value
Because a generator loops indefinitely, when invoking non-blocking generators, child processes are always forked in background loading next batches. Even though the generators are not need anymore. Calling this function results in stopping the child process and any consequence IO.
1 | CleanupGenerator(generator)
|
generator |
a generator function. |
This function force stops the multi-process generator and remove the function from its parent frame to make gc works.
last result from generator(), invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.