File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
main/kotlin/com/coxautodev/graphql/tools
test/kotlin/com/coxautodev/graphql/tools Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 14
14
<parent >
15
15
<groupId >org.springframework.boot</groupId >
16
16
<artifactId >spring-boot-starter-parent</artifactId >
17
- <version >2.0.5 .RELEASE</version >
17
+ <version >2.1.0 .RELEASE</version >
18
18
<relativePath /> <!-- lookup parent from repository -->
19
19
</parent >
20
20
23
23
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
24
24
<java .version>1.8</java .version>
25
25
<graphql-spring-boot-starter .version>5.2</graphql-spring-boot-starter .version>
26
- <graphql-java-tools .version>5.4.1-SNAPSHOT</graphql-java-tools .version>
26
+ <graphql-java-tools .version>5.4.0</graphql-java-tools .version>
27
+ <kotlin .version>1.3.10</kotlin .version>
27
28
</properties >
28
29
29
30
<dependencies >
66
67
<artifactId >graphql-java-tools</artifactId >
67
68
<version >${graphql-java-tools.version} </version >
68
69
</dependency >
69
- <!-- <dependency>
70
- <groupId>org.jetbrains.kotlin</groupId>
71
- <artifactId>kotlin-stdlib</artifactId>
72
- <version>1.3.10</version>
73
- </dependency>-->
74
70
</dependencies >
75
71
76
72
<build >
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import graphql.schema.GraphQLScalarType
18
18
import graphql.schema.idl.RuntimeWiring
19
19
import graphql.schema.idl.SchemaDirectiveWiring
20
20
import kotlinx.coroutines.Dispatchers
21
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
21
22
import kotlinx.coroutines.GlobalScope
22
23
import kotlinx.coroutines.channels.ReceiveChannel
23
24
import kotlinx.coroutines.reactive.publish
@@ -359,6 +360,7 @@ data class SchemaParserOptions internal constructor(
359
360
this .typeDefinitionFactories.add(factory)
360
361
}
361
362
363
+ @ExperimentalCoroutinesApi
362
364
fun build (): SchemaParserOptions {
363
365
val coroutineContext = coroutineContext ? : Dispatchers .Default
364
366
val wrappers = if (useDefaultGenericWrappers) {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import graphql.schema.DataFetcher
10
10
import graphql.schema.DataFetchingEnvironment
11
11
import graphql.schema.DataFetchingEnvironmentBuilder
12
12
import kotlinx.coroutines.Dispatchers
13
+ import kotlinx.coroutines.ExperimentalCoroutinesApi
13
14
import kotlinx.coroutines.Job
14
15
import kotlinx.coroutines.channels.Channel
15
16
import kotlinx.coroutines.channels.ReceiveChannel
@@ -43,6 +44,7 @@ class MethodFieldResolverDataFetcherTest {
43
44
Assert .assertTrue(future.get())
44
45
}
45
46
47
+ @ExperimentalCoroutinesApi
46
48
@Test
47
49
fun `canceling subscription Publisher also cancels underlying Kotlin coroutine channel` () {
48
50
// setup
@@ -131,4 +133,4 @@ class MethodFieldResolverDataFetcherTest {
131
133
}
132
134
133
135
data class DataClass (val name : String = " TestName" )
134
- }
136
+ }
You can’t perform that action at this time.
0 commit comments