/// Disposes of the registration and unregisters the target callback from the associated
/// <see cref="T:System.Threading.CancellationToken">CancellationToken</see>.
/// </summary>
- internal bool Unregister() // corefx currently has an InternalsVisibleTo dependency on this
+ public bool Unregister() // TODO dotnet/corefx#14903: This is "public" for corefx usage, but it's not yet in the refs or approved public API.
{
CancellationTokenSource.CallbackNode node = _node;
return node != null && node.Partition.Unregister(_id, node);