@@ -140,7 +140,9 @@ await this.AssertAllStagesStoppedAsync(async() => {
140
140
. Run ( _materializer ) ;
141
141
var sub = await s . ExpectSubscriptionAsync ( ) ;
142
142
143
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
143
144
queue . OfferAsync ( 1 ) . PipeTo ( TestActor ) ;
145
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
144
146
await ExpectNoMsgAsync ( _pause ) ;
145
147
sub . Request ( 1 ) ;
146
148
await ExpectMsgAsync < Enqueued > ( ) ;
@@ -160,10 +162,14 @@ await this.AssertAllStagesStoppedAsync(async() => {
160
162
. Run ( _materializer ) ;
161
163
var sub = await s . ExpectSubscriptionAsync ( ) ;
162
164
165
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
163
166
queue . WatchCompletionAsync ( )
164
167
. ContinueWith ( t => "done" , TaskContinuationOptions . OnlyOnRanToCompletion )
165
168
. PipeTo ( TestActor ) ;
169
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
170
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
166
171
queue . OfferAsync ( 1 ) . PipeTo ( TestActor ) ;
172
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
167
173
await ExpectNoMsgAsync ( _pause ) ;
168
174
169
175
sub . Cancel ( ) ;
@@ -223,8 +229,12 @@ await this.AssertAllStagesStoppedAsync(async() => {
223
229
for ( var i = 1 ; i <= 5 ; i ++ )
224
230
AssertSuccess ( queue . OfferAsync ( i ) ) ;
225
231
232
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
226
233
queue . OfferAsync ( 6 ) . PipeTo ( TestActor ) ;
234
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
235
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
227
236
queue . OfferAsync ( 7 ) . PipeTo ( TestActor ) ;
237
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
228
238
var expect = await ExpectMsgAsync < Status . Failure > ( ) ;
229
239
expect . Cause . Should ( ) . BeOfType < IllegalStateException > ( ) ;
230
240
await probe . RequestNextAsync ( 1 ) ;
@@ -246,7 +256,9 @@ await this.AssertAllStagesStoppedAsync(async() => {
246
256
Source . Queue < int > ( 1 , OverflowStrategy . Fail )
247
257
. To ( Sink . FromSubscriber ( s ) )
248
258
. Run ( _materializer ) ;
259
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
249
260
queue . WatchCompletionAsync ( ) . PipeTo ( TestActor ) ;
261
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
250
262
await queue . OfferAsync ( 1 ) ; // need to wait when first offer is done as initialization can be done in this moment
251
263
await queue . OfferAsync ( 2 ) ;
252
264
await ExpectMsgAsync < Status . Failure > ( ) ;
@@ -262,7 +274,9 @@ await this.AssertAllStagesStoppedAsync(async() => {
262
274
var queue = Source . Queue < int > ( 1 , OverflowStrategy . Fail )
263
275
. To ( Sink . FromSubscriber ( s ) )
264
276
. Run ( tempMap ) ;
277
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
265
278
queue . WatchCompletionAsync ( ) . PipeTo ( TestActor ) ;
279
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
266
280
tempMap . Shutdown ( ) ;
267
281
await ExpectMsgAsync < Status . Failure > ( ) ;
268
282
} , _materializer ) ;
@@ -280,7 +294,9 @@ await this.AssertAllStagesStoppedAsync(async() => {
280
294
var sub = await s . ExpectSubscriptionAsync ( ) ;
281
295
282
296
await queue . OfferAsync ( 1 ) ;
297
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
283
298
queue . OfferAsync ( 2 ) . PipeTo ( TestActor ) ;
299
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
284
300
await ExpectMsgAsync < Dropped > ( ) ;
285
301
286
302
sub . Request ( 1 ) ;
@@ -301,7 +317,9 @@ await this.AssertAllStagesStoppedAsync(async () => {
301
317
var sub = await s . ExpectSubscriptionAsync ( ) ;
302
318
AssertSuccess ( queue . OfferAsync ( 1 ) ) ;
303
319
320
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
304
321
queue . OfferAsync ( 2 ) . PipeTo ( TestActor ) ;
322
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
305
323
await ExpectNoMsgAsync ( _pause ) ;
306
324
307
325
sub . Request ( 1 ) ;
@@ -326,7 +344,9 @@ await this.AssertAllStagesStoppedAsync(async() => {
326
344
. Run ( _materializer ) ;
327
345
var sub = await s . ExpectSubscriptionAsync ( ) ;
328
346
347
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
329
348
queue . WatchCompletionAsync ( ) . ContinueWith ( t => Done . Instance ) . PipeTo ( TestActor ) ;
349
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
330
350
sub . Cancel ( ) ;
331
351
await ExpectMsgAsync ( Done . Instance ) ;
332
352
@@ -402,8 +422,12 @@ public async Task QueueSource_should_complete_the_stream_when_buffer_is_full_and
402
422
var source = tuple . Item1 ;
403
423
var probe = tuple . Item2 ;
404
424
425
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
405
426
source . OfferAsync ( 1 ) ;
427
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
428
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
406
429
source . OfferAsync ( 2 ) ;
430
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
407
431
source . Complete ( ) ;
408
432
await probe . RequestNext ( 1 )
409
433
. RequestNext ( 2 )
@@ -440,7 +464,9 @@ public async Task QueueSource_should_complete_the_stream_when_no_buffer_is_used_
440
464
var source = tuple . Item1 ;
441
465
var probe = tuple . Item2 ;
442
466
467
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
443
468
source . OfferAsync ( 1 ) ;
469
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
444
470
source . Complete ( ) ;
445
471
await probe . RequestNext ( 1 ) . ExpectCompleteAsync ( ) ;
446
472
var task = source . WatchCompletionAsync ( ) ;
0 commit comments