2023-08-29 12:57:46 +02:00
|
|
|
"""
|
|
|
|
==(t1::AbstractTask, t2::AbstractTask)
|
|
|
|
|
|
|
|
Fallback implementation of equality comparison between two abstract tasks. Always returns false. For equal specific types of t1 and t2, a more specific comparison is called instead, doing an actual comparison.
|
|
|
|
"""
|
2023-08-24 15:11:54 +02:00
|
|
|
function ==(t1::AbstractTask, t2::AbstractTask)
|
2023-08-25 10:48:22 +02:00
|
|
|
return false
|
2023-08-24 15:11:54 +02:00
|
|
|
end
|
|
|
|
|
2023-08-29 12:57:46 +02:00
|
|
|
"""
|
|
|
|
==(t1::AbstractComputeTask, t2::AbstractComputeTask)
|
|
|
|
|
|
|
|
Equality comparison between two compute tasks.
|
|
|
|
"""
|
2023-08-24 15:11:54 +02:00
|
|
|
function ==(t1::AbstractComputeTask, t2::AbstractComputeTask)
|
2023-08-25 10:48:22 +02:00
|
|
|
return typeof(t1) == typeof(t2)
|
2023-08-24 15:11:54 +02:00
|
|
|
end
|
|
|
|
|
2023-08-29 12:57:46 +02:00
|
|
|
"""
|
|
|
|
==(t1::AbstractDataTask, t2::AbstractDataTask)
|
|
|
|
|
|
|
|
Equality comparison between two data tasks.
|
|
|
|
"""
|
2023-08-24 15:11:54 +02:00
|
|
|
function ==(t1::AbstractDataTask, t2::AbstractDataTask)
|
2023-08-25 10:48:22 +02:00
|
|
|
return data(t1) == data(t2)
|
2023-08-24 15:11:54 +02:00
|
|
|
end
|