Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Artemyev committed Mar 13, 2019
1 parent 175737b commit b032908
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@ compile 'com.viartemev:the-white-rabbit:$version'
##### - Async message publishing with confirmation:
```kotlin
connection.confirmChannel {
publish {
coroutineScope {
(1..n).map { asyncPublishWithConfirm(createMessage("Hello #$it")) }.awaitAll()
}
publish {
val messages = (1..n).map { createMessage("Hello #$it") }
publishWithConfirmAsync(coroutineContext, messages).awaitAll()
}
}
```
or
```kotlin
connection.confirmChannel {
publish {
val messages = (1..n).map { createMessage("Hello #$it") }
asyncPublishWithConfirm(messages).awaitAll()
publish {
coroutineScope {
val messages = (1..n).map { createMessage("Hello #$it") }
messages.map { async { publishWithConfirm(it) } }
}
}
}
```
Expand All @@ -59,7 +60,7 @@ Consume only n-messages:
```kotlin
connection.channel {
consume(QUEUE_NAME, PREFETCH_COUNT) {
(1..n).map { asyncConsumeWithConfirm({ println(it) }) }.awaitAll()
(1..n).map { async { consumeMessageWithConfirm({ println(it) }) } }.awaitAll()
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ configure(allprojects) { project ->
}

configure(rootProject) {
version = '0.0.4'
version = '0.0.5'

apply plugin: "com.novoda.bintray-release"
apply plugin: 'com.adarshr.test-logger'
Expand All @@ -103,7 +103,7 @@ configure(rootProject) {
repoName = 'Maven'
groupId = 'com.viartemev'
artifactId = 'the-white-rabbit'
publishVersion = '0.0.4'
publishVersion = '0.0.5'
desc = 'The White Rabbit is an asynchronous RabbitMQ library based on Kotlin coroutines'
website = 'https://github.com/viartemev/the-white-rabbit'
licences = ['MIT']
Expand Down

This file was deleted.

0 comments on commit b032908

Please sign in to comment.