# BatchWorker Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/)

## IsIdle {#isidle-b8d46585}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/methods/isidle-b8d46585/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/BatchWorker.cs#L156)

```csharp
public bool IsIdle()
```

Check if this worker is idle.

## Notify {#notify-6b9dd860}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/methods/notify-6b9dd860/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/BatchWorker.cs#L52-L66)

```csharp
public void Notify()
```

Notify the worker that there is more work.

## Notify(DateTime) {#notify-system-datetime-4873ee36}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/methods/notify-system-datetime-4873ee36/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/BatchWorker.cs#L75-L93)

```csharp
public void Notify(DateTime utcTime)
```

Instructs the batch worker to run again to check for work, if it has not run again already by then, at specified `utcTime`.

### Parameters

- `utcTime` (`DateTime`)

## NotifyAndWaitForWorkToBeServiced {#notifyandwaitforworktobeserviced-8d56fe2a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/methods/notifyandwaitforworktobeserviced-8d56fe2a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/BatchWorker.cs#L191-L204)

```csharp
public Task NotifyAndWaitForWorkToBeServiced()
```

Notify the worker that there is more work, and wait for the current work cycle, and also the next work cycle if there is currently unserviced work.

## WaitForCurrentWorkToBeServiced {#waitforcurrentworktobeserviced-d81010a5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/methods/waitforcurrentworktobeserviced-d81010a5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/BatchWorker.cs#L162-L178)

```csharp
public Task WaitForCurrentWorkToBeServiced()
```

Wait for the current work cycle, and also the next work cycle if there is currently unserviced work.
