add forgotten spawndaemonthreads and added license info to bulma extension files

This commit is contained in:
Kevin 2020-08-04 08:45:06 -05:00
parent 086f2f718c
commit ab10cea8b6
7 changed files with 562 additions and 1 deletions

View file

@ -0,0 +1,14 @@
from typing import TYPE_CHECKING
from onionrthreads import add_onionr_thread
from communicator.onlinepeers import get_online_peers
if TYPE_CHECKING:
from deadsimplekv import DeadSimpleKV
from toomanyobjs import TooMany
def spawn_client_threads(shared_state: 'TooMany'):
kv: 'DeadSimpleKV' = shared_state.get_by_string('DeadSimpleKV')
add_onionr_thread(get_online_peers, (shared_state,), 3, 1)