Skip to content

Commit 13c20d4

Browse files
committed
Added a note on connect()/connect(timeout) difference (closes #32)
1 parent 7b69516 commit 13c20d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

readme.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ client.connect();
8181
```
8282

8383
> By default, BinaryLogClient starts from the current (at the time of connect) master binlog position. If you wish to
84-
kick off from a specific filename or position, use client.setBinlogFilename(...) + client.setBinlogPosition(...).
84+
kick off from a specific filename or position, use `client.setBinlogFilename(filename)` + `client.setBinlogPosition(position)`.
85+
86+
> `client.connect()` is blocking (meaning that client will listen for events in the current thread).
87+
`client.connect(timeout)`, on the other hand, spawns a separate thread.
8588

8689
### Controlling event deserialization
8790

0 commit comments

Comments
 (0)