Skip to content

Commit

Permalink
retry returns Task, not Task<unit>
Browse files Browse the repository at this point in the history
  • Loading branch information
bytenik committed May 10, 2012
1 parent d8ec31c commit f0c3839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/MassTransit.Async/Retries.fs
Expand Up @@ -3,8 +3,12 @@
module Retries =
open MassTransit.Async.AsyncRetry
open System
open System.Threading.Tasks

[<Serializable>]
type Unit() = class end

/// Execute the action, retrying according to the specified policy
[<CompiledName("Retry")>]
let retry ( policy : RetryPolicy ) ( action : Action ) =
AsyncRetryBuilder policy { action |> ignore } |> Async.StartAsTask
AsyncRetryBuilder policy { action |> ignore } |> Async.StartAsTask :> Task
Expand Up @@ -116,7 +116,7 @@ public void Send(ISendContext context)
return brokeredMessage;
}, 1);
});
}).Wait();
}
});
}
Expand Down

0 comments on commit f0c3839

Please sign in to comment.