Using .Net Core CancellationToken instead of IJobCancellationToken

I would like to use CancellationToken from .net core.
I passed it instead IJobCancellationToken like this:

public void LongRunningMethod(CancellationToken cancellationToken)
    for (var i = 0; i < Int32.MaxValue; i++)


BackgroundJob.Enqueue(() =>LongRunningMethod(CancellationToken.None));

and it works fine, but i can’t stop this job using this:


Is there any way to do this?

There’s currently an open PR, but it is not merged yet. You can checkout and build it yourself though.

Can you give me a link? Thanks.