Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskCompletionSource"/> class.
 /// </summary>
 public TaskCompletionSource()
 {
     _taskCompletionSource = new TaskCompletionSource <object>();
 }
Ejemplo n.º 5
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);
		}
Ejemplo n.º 6
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);
		}
Ejemplo n.º 7
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);
		}
Ejemplo n.º 8
0
		/// <summary>
		/// Initializes a new instance of the <see cref="TaskCompletionSource"/> class.
		/// </summary>
		public TaskCompletionSource()
		{
			_taskCompletionSource = new TaskCompletionSource<object>();
		}