rust-mobile/android-activity

Document cheap clonability of AndroidApp via Arc

A248 opened this issue · 1 comments

A248 commented

It is worth mentioning that AndroidApp can be cloned cheaply. If this behavior is documented, then callers can rely upon it as a contract.

pub(crate) inner: Arc<RwLock<AndroidAppInner>>,

rib commented

Right, it's intended to be something that can be relied on, so we should document that.