Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/dart-rid-api: rid object combining Rid API and config #28

Merged
merged 11 commits into from
Sep 15, 2021

Conversation

thlorenz
Copy link
Owner

Adding to the Rid object introduced with the last change, to expose the following:

  • rid.debugReply controls how/if replies to requests are logged (was RID_DEBUG_REPLY), has
    a default
  • rid.debugLock controls how/if locking the store on access is logged (was RID_DEBUG_LOCK)
    has a default
  • rid.replyTimeoutconfigures the Duration after which a missing reply for a request mesage
    sent via the rid.replyChannel results in an error (was RID_REPLY_TIMEOUT), has a default
  • rid.replyChannel provides access the channel over which replies to requests are sent,
    namely the Stream<TReply>rid.replyChannel.stream which can be used to subscribe to those
    replies (was replyChannel)
  • rid.messageChannel provides access to messages sent to Dart from Rust, i.e. via
    rid::log_debug! or rid::error! macros, namely the Stream<RidMessage> rid.messageChannel.stream which can be used to subscribe to those messages, by default those
    messages aren't handled

Tests and examples here were updated to this API update and I will provide a related PR in
order to adapt them as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant