Exemple #1
0
        public static async Task Wrap(this Task t, string title)
        {
            var iid = BaseUtils.PrefixedID("..");

            DBG.Indent(3, title + " { " + iid);
            await t;

            DBG.Indent(-3, "} " + iid);
        }
Exemple #2
0
        public static async Task <T> WrapR <T>(this Task <T> t, string title)
        {
            var iid = BaseUtils.PrefixedID("..");

            DBG.Indent(3, title + " { " + iid);
            var r = await t;

            DBG.Indent(-3, "} " + iid);
            return(r);
        }