Async and Await programming help please. : want to run a void function that writes to a textblock in WPF

private async Task<int> TASK_ClickthroughBuild(string server, int frame, int click)
       
 {
 
           if (server == "value")
            {
                CreativeCode.Inlines.Add(openScript + newLine);
                CreativeCode.Inlines.Add("var " + click + " = '%%CLICK_URL_ESC%%%%DEST_URL%%';" + newLine);
                CreativeCode.Inlines.Add("var " + frame + " = document.getElementById('" + frame + "');" + newLine);
                CreativeCode.Inlines.Add(frame + ".href = " + click + ";" + newLine);
                CreativeCode.Inlines.Add(closeScript);
                PASSBACKframeINT = frame;              
            }
            return PASSBACKframeINT;
        }

The above function returns an integer value and writes code to a textblock.

This is the second function.

private async Task clickElementBuild()
        {

            CreativeCode.Inlines.Add("<a href='#' id='" + PASSBACKframeINT + "' target='_blank' class='" + PASSBACKwrapINT + "' >" + newLine);
            CreativeCode.Inlines.Add("<div class='" + PASSBACKblockINT + "' id='" + overlayINT + "'></div>" + newLine);

                    }

The second function, the code needs to write the textblock code ABOVE the first function, but depends on the returned value of first function to write properly.

So I need to write this in an Asynchronous format.  Can I have pointers or a better way of doing this?

Thanks






