Skip to content

Commit

Permalink
Resolves #130.
Browse files Browse the repository at this point in the history
  • Loading branch information
back2dos committed Jun 16, 2020
1 parent c9d0774 commit 564b8f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tink/core/Future.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import js.lib.Promise as JsPromise;
#end

@:forward(handle, eager)
abstract Future<T>(FutureObject<T>) from FutureObject<T> to FutureObject<T> {
abstract Future<T>(FutureObject<T>) from FutureObject<T> to FutureObject<T> from FutureTrigger<T> {

static public final NOISE:Future<Noise> = Future.sync(Noise);
@:deprecated('use Future.NOISE instead') static public final NULL:Future<Noise> = NOISE;
Expand Down
4 changes: 3 additions & 1 deletion src/tink/core/Noise.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tink.core;

enum abstract Noise(Null<Dynamic>) from Dynamic {
enum abstract Noise(Null<Dynamic>) {
var Noise = null;
@:from static inline function ofAny<T>(t:Null<T>):Noise
return Noise;
}

0 comments on commit 564b8f0

Please sign in to comment.