File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ export class TileDBQuery {
147
147
undefined ,
148
148
undefined ,
149
149
{
150
+ cancelToken : options . cancelToken ,
150
151
headers : {
151
152
'Content-Type' : 'application/capnp'
152
153
} ,
@@ -210,7 +211,8 @@ export class TileDBQuery {
210
211
ignoreOffsets : body . ignoreOffsets ,
211
212
attributes : body . attributes ,
212
213
returnOffsets : body . returnOffsets ,
213
- returnRawBuffers : body . returnRawBuffers
214
+ returnRawBuffers : body . returnRawBuffers ,
215
+ cancelToken : body . cancelToken
214
216
} ;
215
217
/**
216
218
* Get the query response in capnp, we set responseType to arraybuffer instead of JSON
@@ -227,6 +229,7 @@ export class TileDBQuery {
227
229
undefined ,
228
230
undefined ,
229
231
{
232
+ cancelToken : body . cancelToken ,
230
233
headers : {
231
234
'Content-Type' : 'application/capnp'
232
235
} ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import setNullables from './setNullables';
7
7
import groupValuesByOffsetBytes from './groupValuesByOffsetBytes' ;
8
8
import concatChars from './concatChars' ;
9
9
import convertToArray from './convertToArray' ;
10
+ import { CancelToken } from 'axios' ;
10
11
11
12
export interface Options {
12
13
/**
@@ -31,6 +32,10 @@ export interface Options {
31
32
* Return offsets for every var-length attribute
32
33
*/
33
34
returnOffsets ?: boolean ;
35
+ /**
36
+ * CancelToken
37
+ */
38
+ cancelToken ?: CancelToken ;
34
39
}
35
40
36
41
type Result =
You can’t perform that action at this time.
0 commit comments