{"action":"created","issue":{"url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/7","repository_url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream","labels_url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/7/comments","events_url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/7/events","html_url":"https://github.com/emschwartz/ilp-protocol-paystream/issues/7","id":297258484,"number":7,"title":"Methods to wait for specific amount to be sent or received","user":{"login":"emschwartz","id":3262610,"avatar_url":"https://avatars3.githubusercontent.com/u/3262610?v=4","gravatar_id":"","url":"https://api.github.com/users/emschwartz","html_url":"https://github.com/emschwartz","followers_url":"https://api.github.com/users/emschwartz/followers","following_url":"https://api.github.com/users/emschwartz/following{/other_user}","gists_url":"https://api.github.com/users/emschwartz/gists{/gist_id}","starred_url":"https://api.github.com/users/emschwartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emschwartz/subscriptions","organizations_url":"https://api.github.com/users/emschwartz/orgs","repos_url":"https://api.github.com/users/emschwartz/repos","events_url":"https://api.github.com/users/emschwartz/events{/privacy}","received_events_url":"https://api.github.com/users/emschwartz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-14T21:52:57Z","updated_at":"2018-02-15T21:35:57Z","closed_at":null,"author_association":"OWNER","body":"Working with the `minBalance` and `maxBalance` directly can be a bit unintuitive. Should we add methods like `sendSourceAmount` that return a Promise that resolves when the amount has been sent, or `receiveAmount` that resolves when an amount has been received?\r\n\r\nOne thing to figure out with such methods is how to deal with the case where the balance is not already at a limit. If the `balance` is 0 and the `minBalance` is 100 and you call `receiveAmount(50)`, should it wait until the balance is 50 or 150? Also, what happens if you call one of these methods again before the first call has resolved? Should it add to (or subtract from) the limit and wait until the updated limit is reached?"},"comment":{"url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/comments/366069402","html_url":"https://github.com/emschwartz/ilp-protocol-paystream/issues/7#issuecomment-366069402","issue_url":"https://api.github.com/repos/emschwartz/ilp-protocol-paystream/issues/7","id":366069402,"user":{"login":"sharafian","id":3362563,"avatar_url":"https://avatars0.githubusercontent.com/u/3362563?v=4","gravatar_id":"","url":"https://api.github.com/users/sharafian","html_url":"https://github.com/sharafian","followers_url":"https://api.github.com/users/sharafian/followers","following_url":"https://api.github.com/users/sharafian/following{/other_user}","gists_url":"https://api.github.com/users/sharafian/gists{/gist_id}","starred_url":"https://api.github.com/users/sharafian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharafian/subscriptions","organizations_url":"https://api.github.com/users/sharafian/orgs","repos_url":"https://api.github.com/users/sharafian/repos","events_url":"https://api.github.com/users/sharafian/events{/privacy}","received_events_url":"https://api.github.com/users/sharafian/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T21:35:57Z","updated_at":"2018-02-15T21:35:57Z","author_association":"NONE","body":"I think the most useful function would be to wait until the stream has stabilized. That way you can set a min/max, and then wait for it to reach the value that you specified."}}
{"actor":{"display_login":"sharafian"}}