/
splitNode.koi
1 lines (1 loc) · 1.64 KB
/
splitNode.koi
1
{"nodes":[{"nid":24,"uid":"custom","category":"function","type":"splitNode","x":26,"y":107,"fields":{"in":[{"name":"start"},{"name":"inner"}],"out":[{"name":"pass"}]},"python":"@on_start\ndef splitNode|||(*args,**kwargs):\n class stremeThread (threading.Thread):\n def __init__(self,**kwargs):\n threading.Thread.__init__(self)\n self.kwargs = kwargs\n def run(self):\n kwargs = self.kwargs\n print (\"Starting \")\n {inner}\n print (\"Exiting \")\n thread = stremeThread(**kwargs)\n thread.start()\n kwargs['Threads'].append(thread)\n return kwargs\n ","python_import":"import threading","python_exec":"splitNode|||","settings":[],"data":{},"grouppath":"","description":"![STREMECOVER](http://go.pluricorp.com/websitemedia/gitlab/templatetop.svg)\n\nThis node uses threading to run a process in a set of nodes\n\n_Allows you to run several processes from a single nodegraph_\n\n\n## This Node Changes\n\nSends kwargs unchanged to this nodes pass pin and inner pin.\n\n\n\n\n## License\n\nUsage of this node is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.","showDescription":true,"showImports":false,"showExecution":false,"showFunction":false,"headerStyle":{"background":"#1562ad"},"toggleMarkdown":false,"toggleUserDialog":false,"stringDialog":"[]","stringPins":"{\"in\":[{\"name\":\"start\"},{\"name\":\"inner\"}],\"out\":[{\"name\":\"pass\"}]}","togglePins":false,"version":"1.0.0"}],"connections":[],"title":"splitNode","showPopup":false,"current":24,"count":25,"servers":{},"serverselection":null}