A lot of useful functions from FSharp.Core
are now translated by WebSharper.
CancellationTokenSource
, CancellationToken
, CancellationTokenRegistration
.Async
class members: DefaultCancellationToken
, CancelDefaultToken
, CancellationToken
, OnCancel
, TryCancelled
PostAndReply
/TryPostAndReply
methods are not supported as JS is single-threaded.sprintf, printfn, failwithf, Printf.kbprintf
%O
uses JavaScript String(x)
function%A
generates a recursive pretty-printer for F# types if type information is available. Currently supports lists, unions, tuples, records, 1 and 2 dimensional arrays. Other types are sent to a dynamic pretty-printer.printfn
prints to JavaScript consolePrintf.sprintf
is not supported, use ExtraTopLevelOperators.sprintf
instead.Async.FromContinuations
ensures that continuation is called only once, throws an error otherwise.System.Web.HttpPostedFile
type in Sitelets API have been changed to System.Web.HttpPostedFileBase
to enable non-ASP.NET hosting (OWIN).
Indexed properties in WIG: Previously if a property was defined with name "item"
, it translated to a an indexer on the object. This is changed so that the empty string is usable for this (still will get .NET property name Item, the default indexer for the class).
// generates default .NET indexer
"" =@ T<obj> |> Indexed T<int> // has JavaScript inline "$this[$index]"
Can’t find what you were looking for? Drop us a line.