Use spawn_with() instead of SharedChan.