<reponame>gabilang/ballerina-dev-website
{"isSingleFile":false,"name":"lang.future","description":"","modules":[{"id":"lang.future","summary":"\u003cp\u003eThis module provides lang library operations on \u003ccode\u003efuture\u003c/code\u003e values defined by the language specification 2020R1.\u003c/p\u003e\n","description":"\u003ch2\u003eModule Overview\u003c/h2\u003e\n\u003cp\u003eThis module provides lang library operations on \u003ccode\u003efuture\u003c/code\u003e values defined by the language specification 2020R1.\u003c/p\u003e\n","orgName":"ballerina","version":"1.0.0","records":[],"classes":[],"abstractObjects":[],"clients":[],"listeners":[],"functions":[{"isIsolated":true,"isRemote":false,"isExtern":true,"parameters":[{"defaultValue":"","type":{"isAnonymousUnionType":false,"isArrayType":false,"isNullable":false,"isTuple":false,"isIntersectionType":false,"isParenthesisedType":false,"isRestParam":false,"isLambda":false,"isDeprecated":false,"generateUserDefinedTypeLink":true,"memberTypes":[],"paramTypes":[],"arrayDimensions":0},"name":"f","description":"\u003cp\u003ethe future to be cancelled\u003c/p\u003e\n","isDeprecated":false}],"returnParameters":[{"type":{"name":"() ","category":"builtin","isAnonymousUnionType":false,"isArrayType":false,"isNullable":false,"isTuple":false,"isIntersectionType":false,"isParenthesisedType":false,"isRestParam":false,"isLambda":false,"isDeprecated":false,"generateUserDefinedTypeLink":true,"memberTypes":[],"paramTypes":[],"arrayDimensions":0},"name":"","description":"","isDeprecated":false}],"name":"cancel","description":"\u003cp\u003eRequests cancellation of a future.\nThis sets the cancellation flag in the strand corresponding to \u003ccode\u003ef\u003c/code\u003e.\nEach time that a strand yields, it will check the cancellation flag\nand terminate abnormally if the flag is set.\u003c/p\u003e\n","isDeprecated":false}],"constants":[],"annotations":[],"errors":[],"types":[]}]}