Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified state and options.
 /// </summary>
 /// <param name="state">The state to use as the underlying <see cref="Task"/>'s <see cref="IAsyncResult.AsyncState"/>.</param>
 /// <param name="creationOptions">The options to use when creating the underlying <see cref="Task"/>.</param>
 public TaskCompletionSource(object state, TaskCreationOptions creationOptions)
 {
     _taskCompletionSource = new TaskCompletionSource <object>(state, creationOptions);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified state.
 /// </summary>
 /// <param name="state">The state to use as the underlying <see cref="Task"/>'s <see cref="IAsyncResult.AsyncState"/>.</param>
 public TaskCompletionSource(object state)
 {
     _taskCompletionSource = new TaskCompletionSource <object>(state);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified options.
 /// </summary>
 /// <param name="creationOptions">The options to use when creating the underlying <see cref="Task"/>.</param>
 public TaskCompletionSource(TaskCreationOptions creationOptions)
 {
     _taskCompletionSource = new TaskCompletionSource <object>(creationOptions);
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletionSource"/> class.
 /// </summary>
 public TaskCompletionSource()
 {
     _taskCompletionSource = new TaskCompletionSource <object>();
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified state and options.
		/// </summary>
		/// <param name="state">The state to use as the underlying <see cref="Task"/>'s <see cref="IAsyncResult.AsyncState"/>.</param>
		/// <param name="creationOptions">The options to use when creating the underlying <see cref="Task"/>.</param>
		public TaskCompletionSource(object state, TaskCreationOptions creationOptions)
		{
			_taskCompletionSource = new TaskCompletionSource<object>(state, creationOptions);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified options.
		/// </summary>
		/// <param name="creationOptions">The options to use when creating the underlying <see cref="Task"/>.</param>
		public TaskCompletionSource(TaskCreationOptions creationOptions)
		{
			_taskCompletionSource = new TaskCompletionSource<object>(creationOptions);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="TaskCompletionSource"/> class with the specified state.
		/// </summary>
		/// <param name="state">The state to use as the underlying <see cref="Task"/>'s <see cref="IAsyncResult.AsyncState"/>.</param>
		public TaskCompletionSource(object state)
		{
			_taskCompletionSource = new TaskCompletionSource<object>(state);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="TaskCompletionSource"/> class.
		/// </summary>
		public TaskCompletionSource()
		{
			_taskCompletionSource = new TaskCompletionSource<object>();
		}