The sync feature uses Arc<RwLock<T>> in place of Rc<RefCell<T>> for Res and State. This allows state and resource objects to be thread safe. Added threading example Added threading documentation