Hi, Vinllen
you could overwrite start method, like this:
def start(self): super(App,self).start()
self.threads.append(hub.spawn(another_method))
Best RegardsHaixiang YANG
Date: Thu, 23 Jul 2015 15:18:38 +0800
From: [email protected]
To: [email protected]
Subject: [Ryu-devel] How to creat new thread in RYU
Hi, Dear all:
I want to create a new thread/coroutine in RYU app, i find it's not ok to write
the code below:
class App(app_manager.RyuApp) : def __init__(self, *args, **kwargs):
... hub.spawn(New_One())
--
Best Regards,Vinllen
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel