Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

add suspending resolvers support #21

Closed
wants to merge 10 commits into from
Closed

Conversation

Bertrand
Copy link
Contributor

@Bertrand Bertrand commented Sep 10, 2018

This code requires kotlin 1.3 and MUST NOT be merged in KGraphQL master for the moment

Adds support for suspending functions in schema DSL resolvers.
This addition is motivated by two goals:

  • ability to integrate with coroutine libraries (KMongo-coroutine in my case) when already using it in an app
  • better scalability (using supending functions allows bypassing thread-pool size limit)

… support)

- update jacoco tools
- fix wrapper syntax
- sync resolvers get executed in parallel
- only a limited number of sync resolvers can run in parallel (capped by thread-pool size)
- suspending resolvers get executed in parallel
- they're all executed in parallel (no limit due to thread-pool size)
@coveralls
Copy link

coveralls commented Sep 10, 2018

Coverage Status

Coverage increased (+0.8%) to 87.555% when pulling af310c4 on Bertrand:async into 4f5205d on pgutkowski:master.

@pgutkowski pgutkowski mentioned this pull request Sep 11, 2018
@pgutkowski
Copy link
Owner

I'm closing this PR, I've merged them to 0.3.0-alpha branch.

@pgutkowski pgutkowski closed this Sep 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants