How to create a priority queue with a certain type of key and priority?

Something like this?

using DataStructures

mutable struct Event
     time::Float64
end

pq = PriorityQueue{Event, Float64}()
2 Likes