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

Coroutine scope stub builder ext #43

Merged
merged 5 commits into from
Apr 2, 2019

Conversation

marcoferrer
Copy link
Owner

Stubs implementing CoroutineScope have proven to cause issues with ambiguous scope resolution. To reduce error prone client code, we are removing CoroutineScope as a super interface from generated stubs. In addition, a new ext to CoroutineScope has been added called newGrpcStub. This is meant to represent the clear intent of launching children within the stub using the context of receiving scope.

@codecov-io
Copy link

codecov-io commented Apr 2, 2019

Codecov Report

❗ No coverage uploaded for pull request base (develop@3f970a8). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop      #43   +/-   ##
==========================================
  Coverage           ?   89.09%           
  Complexity         ?       19           
==========================================
  Files              ?       15           
  Lines              ?      266           
  Branches           ?       37           
==========================================
  Hits               ?      237           
  Misses             ?       10           
  Partials           ?       19
Impacted Files Coverage Δ Complexity Δ
...ub/marcoferrer/krotoplus/coroutines/StubSupport.kt 100% <100%> (ø) 0 <0> (?)
...errer/krotoplus/coroutines/CoroutineCallOptions.kt 100% <100%> (ø) 0 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f970a8...2827b83. Read the comment docs.

@marcoferrer marcoferrer merged commit e72d057 into develop Apr 2, 2019
@marcoferrer marcoferrer deleted the coroutine-scope-stub-builder-ext branch April 2, 2019 03:24
marcoferrer added a commit that referenced this pull request Apr 3, 2019
* remove coroutine scope interface from generated stubs

* add coroutine scope stub builder ext and generic stub def interface

* bug fix for additional context builder for abstract stub ext

* add suspending stub builder to generated code
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.

2 participants