File tree 1 file changed +0
-23
lines changed
1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -357,29 +357,6 @@ macro_rules! dbg {
357
357
} ;
358
358
}
359
359
360
- /// Awaits the completion of an async call.
361
- #[ macro_export]
362
- #[ unstable( feature = "await_macro" , issue = "50547" ) ]
363
- #[ allow_internal_unstable( gen_future, generators) ]
364
- #[ allow_internal_unsafe]
365
- macro_rules! r#await {
366
- ( $e: expr) => { {
367
- let mut pinned = $e;
368
- loop {
369
- if let $crate:: task:: Poll :: Ready ( x) =
370
- $crate:: future:: poll_with_tls_context( unsafe {
371
- $crate:: pin:: Pin :: new_unchecked( & mut pinned)
372
- } )
373
- {
374
- break x;
375
- }
376
- // FIXME(cramertj) prior to stabilizing await, we have to ensure that this
377
- // can't be used to create a generator on stable via `|| await!()`.
378
- yield
379
- }
380
- } }
381
- }
382
-
383
360
/// Selects the first successful receive event from a number of receivers.
384
361
///
385
362
/// This macro is used to wait for the first event to occur on a number of
You can’t perform that action at this time.
0 commit comments