IBlockingDequeExtensions.OfferLastAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| OfferLastAsync(IBlockingDeque, Object) |
Runs OfferLast(Object) on the specified deque through Task. |
| OfferLastAsync(IBlockingDeque, Object, Int64, TimeUnit) |
Runs OfferLast(Object, Int64, TimeUnit) on the specified deque through Task. |
OfferLastAsync(IBlockingDeque, Object)
Runs OfferLast(Object) on the specified deque through Task.
public static System.Threading.Tasks.Task<bool> OfferLastAsync(this Java.Util.Concurrent.IBlockingDeque self, Java.Lang.Object? e);
static member OfferLastAsync : Java.Util.Concurrent.IBlockingDeque * Java.Lang.Object -> System.Threading.Tasks.Task<bool>
Parameters
- self
- IBlockingDeque
The deque whose OfferLast(Object) method is called.
- e
- Object
The element passed to OfferLast(Object) for insertion at the back.
Returns
A task whose result indicates whether OfferLast(Object) inserted the element.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OfferLastAsync(IBlockingDeque, Object, Int64, TimeUnit)
Runs OfferLast(Object, Int64, TimeUnit) on the specified deque through Task.
public static System.Threading.Tasks.Task<bool> OfferLastAsync(this Java.Util.Concurrent.IBlockingDeque self, Java.Lang.Object? e, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member OfferLastAsync : Java.Util.Concurrent.IBlockingDeque * Java.Lang.Object * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<bool>
Parameters
- self
- IBlockingDeque
The deque whose timed OfferLast(Object, Int64, TimeUnit) method is called.
- e
- Object
The element passed to OfferLast(Object, Int64, TimeUnit) for insertion at the back.
- timeout
- Int64
The maximum wait duration passed to OfferLast(Object, Int64, TimeUnit).
- unit
- TimeUnit
The unit used to measure timeout.
Returns
A task whose result indicates whether the timed OfferLast(Object, Int64, TimeUnit) call inserted the element.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.