title%20Callback%20scenario%0A%0Aparticipant%20%22%22%22main()%22%22%22%20as%20main()%0A%0Acreate%20f%0Acreate%20g%0Anote%20over%20main()%3ACall%20function%20%22%22f%22%22%20with%5Cncallback%20function%5Cn%20%22%22g%22%22%20as%20parameter%20%0Amain()-%3Ef%3A%22%22f(g)%22%22%0Aactivate%20f%0Anote%20over%20f%3A%20Compute%20%22%22result%22%22%0Anote%20over%20f%3A%20Call%20function%20%22%22g%22%22%20with%20%22%22result%22%22%0A%0Af-%3Eg%3A%22%22g(result)%22%22%0Aactivate%20g%0Anote%20over%20g%3A%20Process%20%22%22result%22%22%0Ag--%3Ef%3Areturn%0Adeactivate%20g%0Adestroysilent%20g%0A%0Af--%3Emain()%3Areturn%0Adeactivate%20f%0Adestroysilent%20f%0Aspace%203%0Adestroyafter%20main()%0ACallback scenariomain()fgCall function f withcallback function g as parameter f(g)Compute resultCall function g with resultg(result)Process resultreturnreturn