Skip to content

Commit dbedfdb

Browse files
committed
Bump version and add defaults for Future
1 parent 37f8378 commit dbedfdb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LibAwsCommon"
22
uuid = "c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
3-
version = "1.3.0"
3+
version = "1.3.1"
44

55
[deps]
66
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"

src/LibAwsCommon.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ mutable struct Future{T}
125125
Future{T}() where {T} = new{T}(Threads.Condition(), 0)
126126
end
127127

128+
Future() = Future{Nothing}() # default future type
128129
Base.pointer(f::Future) = pointer_from_objref(f)
129130
Future(ptr::Ptr) = unsafe_pointer_to_objref(ptr)::Future
130131
Future{T}(ptr::Ptr) where {T} = unsafe_pointer_to_objref(ptr)::Future{T}
@@ -152,6 +153,7 @@ end
152153

153154
capture(e::Exception) = CapturedException(e, Base.backtrace())
154155

156+
Base.notify(f::Future{Nothing}) = notify(f, nothing)
155157
function Base.notify(f::Future{T}, x::Union{Exception, T}) where {T}
156158
lock(f.notify) # acquire barrier
157159
try

0 commit comments

Comments
 (0)