Skip to content

Commit

Permalink
Merge pull request #74 from inez/inez.tutorials_ShellCommandResult
Browse files Browse the repository at this point in the history
Fix: Expect ShellCommandResult from executing ShellCommandRequest
  • Loading branch information
Malinskiy committed Feb 8, 2022
2 parents e83efc8 + b0d9ec3 commit 7291ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_tutorials/1-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ val device = devices.firstOrNull { it.state == DeviceState.DEVICE } ?: throw Run
Now we have a device and can execute a request for it:

```kotlin
val response: String = adb.execute(ShellCommandRequest("echo hello"), device.serial)
val response: ShellCommandResult = adb.execute(ShellCommandRequest("echo hello"), device.serial)
```

All the waiting for response and establishing a transport connection happens transparently, you don't need to wait for anything. This also
doesn't allocate new threads.
doesn't allocate new threads.

0 comments on commit 7291ad7

Please sign in to comment.