ADB.set_target_device() sets state globally.
This design decision is a problem in environments where concurrency is a requirement, which is what ultimately drove me to switch to Google's catapult/devil project.
Rather a single global target device setting, a safer alternative is to have each ADB instance keep its own reference to its selected device.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
ADB.set_target_device()sets state globally.This design decision is a problem in environments where concurrency is a requirement, which is what ultimately drove me to switch to Google's catapult/devil project.
Rather a single global target device setting, a safer alternative is to have each ADB instance keep its own reference to its selected device.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.