# CheckFenceIsDependencyOrDidSyncFence(JobHandle, JobHandle)

> CheckFenceIsDependencyOrDidSyncFence.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Jobs](/engine/6000.6/script-reference/unity/jobs.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool CheckFenceIsDependencyOrDidSyncFence(JobHandle jobHandle, JobHandle dependsOn)
```

### Parameters

**** (\[JobHandle]\(/engine/6000.6/script-reference/unity/jobs/jobhandle)): Job handle.**** (\[JobHandle]\(/engine/6000.6/script-reference/unity/jobs/jobhandle)): Job handle dependency.

### Returns

| Type                                                          | Description   |
| ------------------------------------------------------------- | ------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Return value. |
